Skip to content

Instantly share code, notes, and snippets.

@culy247
Last active March 25, 2020 04:24
Show Gist options
  • Select an option

  • Save culy247/37bc8af3c77cc5ae2db7276e144f77ec to your computer and use it in GitHub Desktop.

Select an option

Save culy247/37bc8af3c77cc5ae2db7276e144f77ec to your computer and use it in GitHub Desktop.
git ignore local file
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"'
exp:
#to ignore local "config.xml"
git ignore config.xml
#to remove ignore local "config.xml"
git unignore config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment