Last active
May 7, 2017 19:54
-
-
Save mraxus/7368180 to your computer and use it in GitHub Desktop.
Default .gitconfig
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
[alias] | |
a = !git add . && git status | |
amend = commit --amend -C HEAD | |
ap = !git add -p && git status | |
au = !git add -u && git status | |
b = branch | |
ba = branch --all | |
bi = for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset)) - %(color:magenta dim)%(contents:subject)%(color:reset)' | |
c = commit | |
ch = checkout | |
chd = checkout develop | |
chm = checkout master | |
cm = commit -m | |
d = diff | |
dc = diff --cached | |
log1 = log --pretty=oneline --abbrev-commit | |
logg = log --graph | |
prb = pull --rebase | |
prune-all = !git remote | xargs -n 1 git remote prune | |
ps = push --follow-tags | |
pu = push -u origin HEAD | |
rbi = "!f() { git rebase -i HEAD~$1; }; f" | |
st = status | |
[push] | |
default = current | |
[core] | |
editor = vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment