Skip to content

Instantly share code, notes, and snippets.

@YaYaB
Created August 30, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YaYaB/4fca07ec1966059200f14298e016412a to your computer and use it in GitHub Desktop.
Save YaYaB/4fca07ec1966059200f14298e016412a to your computer and use it in GitHub Desktop.
Untrack file in git (when add file to gitignore and file already tracked)
file_path=""
git update-index --assume-unchanged ${file_path}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment