Skip to content

Instantly share code, notes, and snippets.

@byassine52
Forked from nickcheng/gitaliases.md
Created February 13, 2018 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byassine52/a005d7b68d39ecddcaa6d4b5ea636687 to your computer and use it in GitHub Desktop.
Save byassine52/a005d7b68d39ecddcaa6d4b5ea636687 to your computer and use it in GitHub Desktop.
git aliases for ignoring files locally.
git config --global alias.ignore 'update-index --skip-worktree'
git config --global alias.unignore 'update-index --no-skip-worktree'
git config --global alias.ignored '!git ls-files -v | grep "^S"'

Ref: https://stackoverflow.com/posts/39086325/revisions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment