K
K
karpo5182016-10-20 08:43:58
git
karpo518, 2016-10-20 08:43:58

How to remove a local file from being tracked?

The repository has a configuration file that, after cloning, needs to be changed to match the settings of the local server. The file was not originally added to .gitignore. How can I make GIT not track this file, or see that the file has changed, so that it does not interfere with commits?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Shumkin, 2016-10-20
@karpo518

git rm --help
*wrote from mobile, didn't write everything
answer above.
see there.USING “ASSUME UNCHANGED” BIT

E
Edward, 2016-10-20
@edalis

Add it to .gitignore now, what's the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question