
8

Git重新应用gitignore文件规则
source link: https://blog.yuantops.com/tech/refresh-gitigore/
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重新应用gitignore文件规则
这个问题参见StackOverflow,记录在下面:
- 保险起见,先对当前Repo提交一个commit,以防丢失数据;
- 然后,
git rm -r –cached .
git add .
git commit -m “fixed untracked files”
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK