Skip to content

Instantly share code, notes, and snippets.

@aisensiy
Last active April 7, 2016 06:41
Show Gist options
  • Save aisensiy/78310402240bcdf3b709 to your computer and use it in GitHub Desktop.
Save aisensiy/78310402240bcdf3b709 to your computer and use it in GitHub Desktop.
# 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