Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Last active June 8, 2019 19:03
Show Gist options
  • Save yifeiyin/11464d14349a3435c8507f45928ab8c3 to your computer and use it in GitHub Desktop.
Save yifeiyin/11464d14349a3435c8507f45928ab8c3 to your computer and use it in GitHub Desktop.
Untrack a file in git
// first, Add the file to git ingnore
git rm -r --cached . // this does not remove the file from local disk, but will remove the file when pull
git add .
// git commit ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment