Created
June 3, 2018 14:50
-
-
Save xiaoysh8/7894380ce3ee4af1b28c9b608ccae2f4 to your computer and use it in GitHub Desktop.
git 修改.gitignore后生效
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git 修改.gitignore后生效 | |
| git rm -r --cached . #清除缓存 | |
| git add . #重新trace file | |
| git commit -m "update .gitignore" #提交和注释 | |
| git push origin master #可选,如果需要同步到remote上的话 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment