M
M
Miguel De Cervantes2017-03-21 15:57:09
git
Miguel De Cervantes, 2017-03-21 15:57:09

How to ignore changes in a file remote locally?

We have a file in the repository called aux.mk, and this name is reserved in Windows (you cannot create files with this name). Bottom line: when checking out, git tries to get this file, but cannot and marks it as deleted.
I do not need this file, I am not going to use or change it. But because of this, there are a lot of problems (SourceTree does not work well, Atom crashes, etc.).
Colleagues, what to do?
.gitignorenaturally does not work. /.git/info/excludeFor some reason, too, although I don’t understand why.
It works git update-index -assume-unchanged aux.mk, but these settings are lost on the next checkout from gerrit. If you tell me how to register this command entirely for the project, this will also be the answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2017-03-21
@migs911

probably, all the developers are under lycuses, one don Juan (crossed out) Miguel suffers under vendium... I
join the advice Alexei Ten

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question