Skip to content

Instantly share code, notes, and snippets.

@jstuckey
Last active May 15, 2019 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jstuckey/5879808 to your computer and use it in GitHub Desktop.
Save jstuckey/5879808 to your computer and use it in GitHub Desktop.
My ~/.gitconfig file. Sets svn style shortcuts, turns on color, sets the default editor, sets user.
[alias]
st = status . -sb
ci = commit
co = checkout
br = branch
cb = rev-parse --abbrev-ref HEAD
conflicts = diff --name-only --diff-filter=U
recent = "!git for-each-ref --sort=-committerdate refs/heads/ | sed s/.*refs\\\\/heads\\\\/// | head"
[color]
ui = 1
[core]
editor = <preferred_editor>
[user]
name = <user_name>
email = <user_email>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment