Skip to content

Instantly share code, notes, and snippets.

@jeremyolliver
Last active December 19, 2015 08:09
Show Gist options
  • Save jeremyolliver/5923668 to your computer and use it in GitHub Desktop.
Save jeremyolliver/5923668 to your computer and use it in GitHub Desktop.
Git config
[alias]
st = status
ci = commit
cia = commit -a
co = checkout
dic = diff --cached
rb = rebase
ba = branch -a
b = branch
cp = cherry-pick
pom = push origin master
pr = remote update origin --prune
w = whatchanged
gl = log --graph
lol = log --graph --pretty=format:'%C(red)%h%C(reset) %C(yellow)%d%C(reset)%s %C(green)%an %C(bold black)%cr%C(reset)' --abbrev-commit --date=relative
glog = log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
standup = shortlog --since=yesterday
rank = shortlog -sn --no-merges
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[core]
editor = nano
excludesfile = ~/.gitignore
[merge]
tool = opendiff
[diff]
tool = opendiff
# File patterns in here will always be ignored by git, even if a given repo doesn't have it listed in it's .gitignore
*.DS_Store
.fseventsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment