Last active
October 23, 2018 07:52
-
-
Save fideloper/3751524 to your computer and use it in GitHub Desktop.
Git aliases
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] | |
| #Basic | |
| st = status -sb | |
| co = checkout | |
| #Flow | |
| fs = flow feature start | |
| ff = flow feature finish | |
| #Infoz | |
| count = shortlog -sn | |
| df = diff --color | |
| wdf = diff --word-diff --color | |
| fdf = diff --name-only --color | |
| br = branch -a | |
| sh = show --pretty=format: --name-only | |
| #Log | |
| last = log -1 HEAD | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
| #Push/pull/commit | |
| pdev = push origin develop | |
| udev = pull origin develop | |
| amend = commit --amend | |
| cm = commit | |
| cmm = commit -m |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updates
2013.8.3
git dfis no longer shows --word-diff, and is in --colorgit wdfshows --word-diff and is in --color ( word diff )git fdfshows --name-only of the files modified ( file diff )