Created
February 10, 2019 04:54
-
-
Save niteshvirani/3ffa7cd84ccccd4b1131b5e0b65958dd to your computer and use it in GitHub Desktop.
Alias for ignoring files on git
This file contains hidden or 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 from the management of Git | |
git config --global alias.ignore 'update-index --skip-worktree' | |
#Restore to the management of Git | |
git config --global alias.unignore 'update-index --no-skip-worktree' | |
#HConfirm ignoged files | |
git config --global alias.ignored '!git ls-files -v | grep ^S' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment