GIT刷新忽略文件.gitignore

1、使用命令工具Git Bash,进入需要修改的工作目录。如C:/est

则输入

cd c:/test

 

2、重置所有缓存(注意后面有个.)

git rm -r --cached .

 

3、重新添加(注意后面有个.)

git add .

 

4、提交

git commit -m ".gitignore is now working"

 

posted @ 2018-06-05 11:36  自由的鱼  阅读(9434)  评论(0编辑  收藏  举报