I need to work on file.txt locally.
I clone a project is in github and i modify this file.txt locally.
When i do
git checkout .
git pull --no-edit
file.txt is changed because remote change it.
How i can ignore file.txt is not update locally.
File is in this directory, a/file.txt. I tried to add this in .gitignore or .git/info/exclude but always remote updates this files overwrite my file locally.
How i can ignore files not being modified locally, remote always updates .gitignore and a/file.txt