Skip to content

Instantly share code, notes, and snippets.

@jakkn
Created April 21, 2018 10:04
Show Gist options
  • Save jakkn/1b418efbb17e818c4d2b98c5be045bed to your computer and use it in GitHub Desktop.
Save jakkn/1b418efbb17e818c4d2b98c5be045bed to your computer and use it in GitHub Desktop.
git exclude tracked and untracked files
# Exclude untracked files or directories
vim .git/info/exclude
# Exclude tracked file
git update-index --assume-unchanged file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment