Created
April 21, 2018 10:04
-
-
Save jakkn/1b418efbb17e818c4d2b98c5be045bed to your computer and use it in GitHub Desktop.
git exclude tracked and untracked files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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