It seems that you created a local .gitignore file, but did not send it to the repository, and the remote object you are trying to interact with (pull / push) now has .gitignore . This will be the case for any file in your repo when this happens.
Since .gitignore is not only a file, it affects the behavior of git, I would compare them manually, creating a file that is a union of the two, fixes it, and then combines it, fixes any formatting problems that may exist.
It may be the same file, but git will not know, because you have not added it locally. This is not a file that you want to change often, because it can do checks in different ways.
Github maintains a list of useful .gitignore templates for most languages.
bnjmn source share