Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gschema/2c60b5166fa36df586dd to your computer and use it in GitHub Desktop.

Select an option

Save gschema/2c60b5166fa36df586dd to your computer and use it in GitHub Desktop.
How to temporarily ignore and unignore file; check which files are ignored

How to temporarily ignore/unignore file changes in Git?

ignore:

git update-index --assume-unchanged <file>

un-ignore:

git update-index --no-assume-unchanged <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment