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.
Written by Kairo Tavares
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#