Skip to content

Instantly share code, notes, and snippets.

@tuononh
Last active May 25, 2020 04:29
Show Gist options
  • Save tuononh/a2be0ed61a6521c3b7e0ead0c2fc0afe to your computer and use it in GitHub Desktop.
Save tuononh/a2be0ed61a6521c3b7e0ead0c2fc0afe to your computer and use it in GitHub Desktop.
[user]
# to be customized
email =
name =
#signingkey =
[alias]
a = add
aa = add --all
ap = add --patch
amend = commit --amend -CHEAD
b = branch
c = commit -m
co = checkout
cp = cherry-pick
d = diff
dc = diff --cached
f = fetch -p
l = log --format=\"%C(auto)%h%C(reset) %s %C(yellow)- %an, %ad%C(reset) %C(dim green)%G?%C(reset)\" --date=relative
m = merge
p = push
pom = push origin master
pod = push origin dev
rb = rebase
rl = reflog
s = status -sb -unormal
sh = stash
v = log --graph --all --format=\"%C(auto)%h%C(reset) %C(auto)%d%C(reset) %s %C(yellow)- %an, %ad%C(reset) %C(dim green)%G?%C(reset)\" --date=relative
vv = log --graph --all --format=\"%C(auto)%h%C(reset) %C(auto)%d%C(reset) %s %C(dim cyan)- %an, %ad%C(reset)%n %C(dim)author :%C(reset) %C(yellow)%aN <%aE>.%C(reset) %C(cyan)%aD%C(reset)%n %C(dim)commiter:%C(reset) %C(yellow)%cN <%cE>.%C(reset) %C(cyan)%cD%C(reset)%n %C(dim)signing :%C(reset) %C(bold green)%G?.%C(reset) %C(yellow)%GS%C(reset) %C(dim cyan)%GK%C(reset)\" --date=relative
fc = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
[core]
editor = nvim
autocrlf = input
pager = diff-so-fancy | less --tabs=4 -RFX
compression = 0
[credential]
helper = cache --timeout=3600
[diff]
tool = vimdiff
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[push]
default = nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment