3
【踩坑】Git排除配置文件失效
source link: https://feiju12138.github.io/2022/09/18/Git%E6%8E%92%E9%99%A4%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%A4%B1%E6%95%88/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【踩坑】Git排除配置文件失效
2022-09-18
1
解决Git排除配置文件.gitignore
失效的问题
- 先提交到了本地Git仓库,后修改了
.gitignore
排除配置文件
- 先删除所有本地Git仓库的内容,再重新添加所有文件到本地Git仓库
git rm -r --cached .
git add .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK