Last active
April 7, 2016 06:41
-
-
Save aisensiy/78310402240bcdf3b709 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
# save this file to ~/.gitconfig | |
[core] | |
editor = vim | |
[user] | |
name = YOUR_NAME | |
email = YOUR_EMAIL | |
[alias] # here is some alias to make your git more powerful | |
st = status | |
di = diff | |
co = checkout | |
ci = commit | |
br = branch | |
sta = stash | |
flog = log --pretty=fuller --decorate | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
lol = log --graph --decorate --oneline | |
lola = log --graph --decorate --oneline --all | |
ds = diff --staged | |
fixup = commit --fixup | |
squash = commit --squash | |
unstage = reset HEAD | |
rum = rebase master@{u} | |
stpp = subtree push --prefix | |
[apply] | |
whitespace = nowarn | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
ui = auto | |
[branch] | |
autosetupmerge = true | |
[rebase] | |
autosquash = true | |
[pull] | |
rebase = true # this is where make your default `git pull` as `git pull --rebase` | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment