Last active
May 25, 2016 10:21
-
-
Save garex/2b9b1049d1e2b3fb4118 to your computer and use it in GitHub Desktop.
Git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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