Created
November 17, 2016 03:12
-
-
Save vinamelody/c6bc3c4dc8ddb40d4b621275f5d9a0b7 to your computer and use it in GitHub Desktop.
Git config
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] | |
d = diff | |
br = branch --all | |
ci = commit | |
co = checkout | |
dh = diff HEAD | |
lg = log --graph --pretty=format:'%Cred%h..%Creset - %s %Cgreen(%cr)%Creset - %an' --abbrev-commit --date=relative | |
lgn = log --pretty=oneline --abbrev-commit --show-notes=* | |
mnff = merge --no-ff | |
rh = reset --soft HEAD^ | |
st = status | |
[core] | |
excludesfile = /Users/USERNAME/.gitignore_global | |
[user] | |
name = NAME | |
email = EMAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternate
git lg
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative