Created
January 9, 2015 16:11
-
-
Save fschaper/557e39ff74d5faef8250 to your computer and use it in GitHub Desktop.
git alias configuration (see http://code.joejag.com/2013/everyday-git-aliases.html)
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] | |
| show-rev-number = !sh -c 'git rev-list --reverse HEAD | nl | awk \"{ if(\\$1 == "$0") { print \\$2 }}\"' | |
| ds = diff --staged | |
| st = status -sb | |
| amend = commit --amend -C HEAD | |
| undo = reset --soft HEAD^ | |
| ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short | |
| daily = log --since '1 day ago' --oneline --author florian.schaper@hmmh.de | |
| graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment