Skip to content

Instantly share code, notes, and snippets.

@niteshvirani
Created February 10, 2019 04:54
Show Gist options
  • Save niteshvirani/3ffa7cd84ccccd4b1131b5e0b65958dd to your computer and use it in GitHub Desktop.
Save niteshvirani/3ffa7cd84ccccd4b1131b5e0b65958dd to your computer and use it in GitHub Desktop.
Alias for ignoring files on git
#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