Skip to content

Instantly share code, notes, and snippets.

@MattWohler
Last active October 13, 2015 13:59
Show Gist options
  • Save MattWohler/73010a638f62a267f67e to your computer and use it in GitHub Desktop.
Save MattWohler/73010a638f62a267f67e to your computer and use it in GitHub Desktop.
git aliases
[core]
autocrlf = true
excludesfile = C:\\Users\\m_wohler\\Documents\\gitignore_global.txt
[user]
name = Matt Wohler
email = matt.wohler@mventures.ca
[alias]
pu = pull
pr = pull --rebase
rb = rebase
co = checkout
st = status -s
br = branch
rh = reset --hard
hf = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
h = log -n 3 --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
ec = config --global -e
cob = checkout -b
undo = reset --hard HEAD^1
#pl = !git branch --merged | grep -v \* | xargs git branch -d
[push]
default = simple
[branch]
autosetupmerge = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment