Skip to content

Instantly share code, notes, and snippets.

@ecelis
Created January 16, 2015 23:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecelis/5c103e953d269f3f870b to your computer and use it in GitHub Desktop.
Save ecelis/5c103e953d269f3f870b to your computer and use it in GitHub Desktop.
Git global configuration tips
cat >>~/.gitmessage.md<<EOF
WIP|FIX|NEW Subject
What happened
[ticket](http://link)
EOF
cat >>~/.gitignore_global<<EOF
*~
.*.sw*
.DS_Store
EOF
git config --global commit.template ~/.gitmessage
git config --global core.excludesfile ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment