Skip to content

Instantly share code, notes, and snippets.

@sabarnix
Last active June 5, 2020 19:23
Show Gist options
  • Save sabarnix/663bc8a7d31b83ea4f931a6ef4878756 to your computer and use it in GitHub Desktop.
Save sabarnix/663bc8a7d31b83ea4f931a6ef4878756 to your computer and use it in GitHub Desktop.
stop tracking and ignore changes to a file in Git
git update-index --assume-unchanged [path]
git update-index --skip-worktree [path]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment