M
M
Mark Ivanych2015-10-22 17:47:05
git
Mark Ivanych, 2015-10-22 17:47:05

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

2 answer(s)
V
VolVoz, 2015-10-22
@VolVoz

git add -u
git reset -- specific .txt file

A
Alexey Shumkin, 2015-10-29
@ashumkin

git update-index --assume-unchanged <file>
more details - ingit update-index --help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question