Last active
May 15, 2023 03:34
-
-
Save gschema/2c60b5166fa36df586dd to your computer and use it in GitHub Desktop.
How to temporarily ignore and unignore file; check which files are ignored
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
| # How to temporarily ignore/unignore file changes in Git? | |
| ## ignore: | |
| ``` | |
| git update-index --assume-unchanged <file> | |
| ``` | |
| ## unignore | |
| ``` | |
| 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