以target目录文件为例子

1. 新建 .gitignore文件,在里面填写 target/

2.如果没有生效,那么在git 缓存中已经有了,就需要先清掉缓存

git rm -r --cached target

git commit -m "删除target缓存" 

git push

Logo

一站式 AI 云服务平台

更多推荐