DEV Community

Discussion on: How to properly set up Git on your computer!

Collapse
 
dschep profile image
Daniel Schep

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
Collapse
 
landonpatmore profile image
Landon Patmore

Hi Daniel,

I wish I could give you a cookie, I forgot about global .gitignores myself.

I will add this in!

Thanks!

Collapse
 
dschep profile image
Daniel Schep

Hah, excellent!