One more bit I consider critical in a proper git setup:
git config --global core.excludesfile '~/.gitignore'
# on a mac:
echo .DS_Store >> ~/.gitignore
# If you use vim
echo '.*.sw[po]' >> ~/.gitignore
# And any other files that should never be checked into git in ANY repo
I wish I could give you a cookie, I forgot about global .gitignores myself.
I will add this in!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.