Skip to content

Instantly share code, notes, and snippets.

@EvanK
Created October 23, 2013 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanK/7121375 to your computer and use it in GitHub Desktop.
Save EvanK/7121375 to your computer and use it in GitHub Desktop.
If you don't have a `.gitconfig` file in your home directory, create it: touch ~/.gitconfig
[user]
email = you@yourprovider.com
name = The name you want showing up in commits
[core]
editor = vi
[push]
default = current
[color]
ui = auto
[diff]
renames = true
[alias]
ci = commit
co = checkout
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
[branch "master"]
remote = origin
merge = refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment