Skip to content

Instantly share code, notes, and snippets.

@garex
Last active May 25, 2016 10:21
Show Gist options
  • Save garex/2b9b1049d1e2b3fb4118 to your computer and use it in GitHub Desktop.
Save garex/2b9b1049d1e2b3fb4118 to your computer and use it in GitHub Desktop.
Git aliases
# To get yours:
# history | grep ' git ' | sed 's/^.* git //' | awk '{print $1}' | sort | uniq -c | sort -h
[alias]
s = status
c = commit -m
p = push origin
pf = push origin -f
d = diff
r = rebase
ri = rebase -i
rid = rebase develop -i
rim = rebase master -i
a = add
b = branch
co = checkout
pause = !git add -A && git commit -m '||'
undo = reset HEAD~1 --mixed
amd = commit --amend
f = fetch origin
fa = !git fetch origin && git fetch origin master:master develop:develop
dfw = diff --ignore-space-change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment