Skip to content

Instantly share code, notes, and snippets.

@rpechayr
Created May 18, 2015 13:38
Show Gist options
  • Save rpechayr/970fa18b7749872d2de8 to your computer and use it in GitHub Desktop.
Save rpechayr/970fa18b7749872d2de8 to your computer and use it in GitHub Desktop.
Git config
[user]
name = <githubusername>
email = <email>
[alias]
co = checkout
ci = commit
br = branch
st = status
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
m = checkout master
fo = fetch origin
mom = merge origin master
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d\
&& git remote prune origin
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = /Users/<osXuser>/.gitignore
editor = vim
autocrlf = input
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset
[github]
user = <githubusername>
token =
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment