Last active
March 21, 2018 18:37
-
-
Save mattbontrager/099462f5e984ccfbcdc5bf59b2e00b6a to your computer and use it in GitHub Desktop.
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=namegoeshere | |
email=emailgoeshere | |
[credential] | |
# helper = osxkeychain | |
[color] | |
ui=auto | |
interactive=auto | |
[color "branch"] | |
current=yellow reverse | |
local=yellow | |
remote=green | |
[color "diff"] | |
meta=yellow bold | |
frag=magenta bold | |
old=red bold | |
new=green bold | |
whitespace=red reverse | |
[color "status"] | |
added=yellow | |
changed=green | |
untracked=cyan | |
[core] | |
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
editor=/usr/bin/vim | |
pager=less -r | |
autocrlf=input | |
# Use custom `.gitignore` and `.gitattributes` | |
excludesfile = ~/.gitignore | |
attributesfile = ~/.gitattributes | |
[commit] | |
template=~/.gitmessage | |
[alias] | |
b=!git branch -v | |
newbranch=!git checkout -b | |
s=status | |
a=!git add . && git status | |
au=!git add -u . && git status | |
aa=!git add . && git add -u . && git status | |
c=commit | |
cm=commit -m | |
ca=commit --amend # careful | |
ac=!git add . && git commit | |
acm=!git add . && git commit -m | |
l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' | |
ll=log --stat --abbrev-commit | |
d=diff --color-words | |
dh=diff --color-words head | |
master=checkout master | |
dev = checkout development | |
alias=!git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort | |
ls=ls-files | |
last=log -1 HEAD | |
unstage=reset HEAD -- | |
[push] | |
default=simple | |
[filter "tabs2spaces"] | |
clean = expand --tabs=4 --initial | |
smudge = unexpand --tabs=4 --first-only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment