Fork me on GitHub

git忽略已经提交的文件

若是已经提交的文件需要忽略

1)删除已经commit的target文件
$ git rm -r --cached */target/  

2)提交
$git commit -m '删除target'

3)push到远程
$git push origin master

posted @ 2020-04-23 10:21  chenpw  阅读(201)  评论(0)    收藏  举报
View Code