Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
Created June 3, 2018 14:50
Show Gist options
  • Save xiaoysh8/7894380ce3ee4af1b28c9b608ccae2f4 to your computer and use it in GitHub Desktop.
Save xiaoysh8/7894380ce3ee4af1b28c9b608ccae2f4 to your computer and use it in GitHub Desktop.
git 修改.gitignore后生效
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