Skip to content

Instantly share code, notes, and snippets.

@xl1
Last active August 30, 2020 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xl1/5d879bc75e4bd9c1b78094b9015a41dd to your computer and use it in GitHub Desktop.
Save xl1/5d879bc75e4bd9c1b78094b9015a41dd to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = xl1
email = shiba200712@gmail.com
[core]
autocrlf = input
[init]
templatedir = ~/.git_template
[gui]
encoding = utf-8
[push]
default = simple
[alias]
lg = log --oneline --decorate
ri = rebase -i
co = checkout
mg = merge --no-ff
dc = diff --cached
cm = commit
fx = commit --fixup
sq = commit --squash
s = status
k = !gitk --all&
p = push origin HEAD
pick = cherry-pick
nomerged = branch --list --no-merged
[help]
autocorrect = 1
[rebase]
autosquash = true
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment