Skip to content

Instantly share code, notes, and snippets.

@rob1256
Last active December 14, 2017 10:07
Show Gist options
  • Save rob1256/0011ca71e6eb91133ee9 to your computer and use it in GitHub Desktop.
Save rob1256/0011ca71e6eb91133ee9 to your computer and use it in GitHub Desktop.
Useful git config
[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