8

Git重新应用gitignore文件规则

 3 years ago
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.
neoserver,ios ssh client

Git重新应用gitignore文件规则

这个问题参见StackOverflow,记录在下面:

  1. 保险起见,先对当前Repo提交一个commit,以防丢失数据;
  2. 然后,
    git rm -r –cached .
    git add .
    git commit -m “fixed untracked files”

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK