I\'m using Gedit, and each time I save a file, Gedit creates a copy of it, and the name of the copy always ends with a ~. The problem is, Git always tries to track these fil
Why bother adding a .gitignore file when you can edit the plaintext file .git/info/exclude. "When deciding whether to ignore a path, git normally checks gitignore patterns from multiple sources" https://www.kernel.org/pub/software/scm/git/docs/gitignore.html
If you add *~ to a line in the .git/info/exclude file in your git repository. Git will ignore that pattern and all of the files ending in tildes.