Answer the question
In order to leave comments, you need to log in
How not to commit a specific file in git?
Please tell me, there is a file, it cannot be removed from the index and added to .gitignore, but I need to make sure that changes to this file do not get into the commit just for me.
Answer the question
In order to leave comments, you need to log in
git update-index --assume-unchanged <file>
more details - ingit update-index --help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question