Created
June 10, 2015 19:25
-
-
Save jeromelefeuvre/974d5bab8767c129e8c2 to your computer and use it in GitHub Desktop.
Git Alias
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
[alias] | |
cm = "!f() { git commit -m \"$*\"; }; f" | |
co = checkout | |
ci = commit | |
rb = rebase | |
br = branch | |
fe = fetch | |
pu = pull | |
pr = pull --rebase | |
cp = cherry-pick | |
mt = mergetool | |
prum = pull --rebase upstream master | |
latest = for-each-ref --sort=-committerdate refs/heads --format='%(committerdate:short) %(refname:short)' --count=10 | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
today = !git log --all --since="midnight" --author $(git config user.email) --oneline | |
all-yesterday = !git log --graph --all --since="3.days.ago" --until="midnight" --author $(git config user.email) --oneline --no-merges | |
branch-cleanup = !git fetch origin --prune && git branch --merged origin/master | grep -v 'master$' | xargs git branch -d | |
master = checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment