.gitignore
文件更新后,并不会生效,因为它有缓存。这又是零散笔记系列。
解决
在项目下 Git Bash here
重置所有缓存,再重新添加
1 2
| git rm -r --cached . git add .
|
提交
1
| git commit -m "fix .gitignore"
|
当然有更轻松的,不误伤的
1 2 3 4 5 6 7 8
| # remove specific file from git cache git rm --cached filename git add filename
# remove all files from git cache git rm -r --cached . git add . git commit -m ".gitignore is now working"
|
未找到相关的 Issues 进行评论
请联系 @scutLMG 初始化创建