Last active
December 14, 2017 10:07
-
-
Save rob1256/0011ca71e6eb91133ee9 to your computer and use it in GitHub Desktop.
Useful git config
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
[user] | |
name = "NAME_HERE" | |
email = "EMAIL_HERE" | |
[core] | |
autocrlf = input | |
editor = nano | |
excludesfile = /Users/rob.obrien/.gitignore | |
[color] | |
status = auto | |
diff = auto | |
interactive = auto | |
branch = auto | |
[fetch] | |
prune = true | |
[alias] | |
st = status | |
lg = log --graph --decorate --branches --oneline --remotes --tags --all --color | |
lgg = log --oneline --graph --decorate | |
lga = log --graph --remotes --tags --decorate --branches --all --pretty=format:'%C(auto)%h%d %s %C(dim normal)(%an)%C(reset)' | |
lgf = log -g --decorate --branches --oneline --remotes --tags --all --color | |
ci = commit | |
co = checkout | |
rb = rebase -p | |
cdiff = diff --cached | |
subup = submodule update --init --recursive | |
yoink = cherry-pick | |
unstage = reset HEAD | |
cob = checkout --no-track -b | |
paths = remote -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment