Created
March 1, 2012 09:45
-
-
Save tzellman/1948602 to your computer and use it in GitHub Desktop.
Aliases in my .gitconfig
This file contains hidden or 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
[alias] | |
wip = !"git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m \"wip\"" | |
unwip = !"git log -n 1 | grep -q -c wip && git reset HEAD~1" | |
rb = !"git wip;git rebase -i origin/master;git unwip" | |
pr = !"git fetch;git wip;git rebase --stat origin;git unwip;git heads" | |
head = !"git log -n1" | |
lost = !"git fsck | awk '/dangling commit/ {print $3}' | git show --format='SHA1: %C(yellow)%h%Creset %f' --stdin | awk '/SHA1/ {sub(\"SHA1: \", \"\"); print}'" | |
heads = !"git log origin/master.. --format='%Cred%h%Creset;%C(yellow)%an%Creset;%H;%Cblue%f%Creset' | git name-rev --stdin --always --name-only | column -t -s';'" | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
fix = commit --amend -C HEAD | |
st = status | |
stu = status -uno | |
ci = commit | |
cia = commit --amend | |
co = checkout | |
br = branch | |
sb = show-branch | |
cp = cherry-pick | |
staged = diff --cached | |
rb = rebase | |
rbc = rebase --continue | |
rbs = rebase --skip | |
rl = reflog | |
rs = remote show | |
rt = remote | |
ru = remote update | |
rp = remote prune | |
sm = submodule | |
gitdc = "git diff --color" | |
panic = !tar cvf ../git_panic.tar * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment