Last Updated: February 25, 2016
·
3.25K
· kairotavares

Git - Ignoring tmp files (~) in commits with .gitignore

I was having a lot of problem with the temporary files that ends with (~) in my git commits and because of that a lot of files that don`t matter to the project was on the untracked files.

So if you wanna to ignore this files you just need to add in your '.gitignore' project file the line with:

*~

For example:

echo '*~' >> .gitignore

If you wanna to learn more about see at gitignore.