| |

Temporarily ignore a file in git

To ignore a file
git update-index –assume-unchanged file.to.ignore

To undo
git update-index –no-assume-unchanged file.to.ignore
Alternatives: [cci lang]git stash[/cci], [cci lang].gitignore[/cci], but I need to keep the file in the working copy, and not touch the gitignore file since it’s synchronized for all developers

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *