1:在目标工程目录下右键git bash,touch .gitignore
2:在.gitignore文件中添加想要忽略的文件规则
.idea/
*.iml
target/
3:提交时如果发现.gitignore无效的话,可使用git rm -r --cached .删除本地缓存,然后在进行提交
git rm -r --cached .
git add .
git commit -m"第一次提交?"
1:在目标工程目录下右键git bash,touch .gitignore
2:在.gitignore文件中添加想要忽略的文件规则
.idea/
*.iml
target/
3:提交时如果发现.gitignore无效的话,可使用git rm -r --cached .删除本地缓存,然后在进行提交
git rm -r --cached .
git add .
git commit -m"第一次提交?"
本文标题:.gitignore的使用
本文链接:https://www.haomeiwen.com/subject/syyesftx.html
网友评论