Skip to content

Instantly share code, notes, and snippets.

@Bak-Jin-Hyeong
Last active September 4, 2020 00:00
Show Gist options
  • Save Bak-Jin-Hyeong/31ec29325d5e4e12d283e76a1cf27299 to your computer and use it in GitHub Desktop.
Save Bak-Jin-Hyeong/31ec29325d5e4e12d283e76a1cf27299 to your computer and use it in GitHub Desktop.
[user]
email = noreply@anonymous
name = noname
[core]
editor = code --wait
autocrlf = false
pager = diff-so-fancy | less --tabs=4 -RFX
[commit]
cleanup = scissors
[merge]
tool = bc3
[diff]
tool = bc3
[difftool "bc3"]
path = C:/Program Files/Beyond Compare 4/BComp.exe
[mergetool "bc3"]
path = C:/Program Files/Beyond Compare 4/BComp.exe
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) : %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset) - %C(yellow)%an <%ae>%C(reset)%C(bold yellow)%d%C(reset)%n%n%w(90,1,2)%C(white)%B%C(reset)%n'
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(yellow)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(yellow)- %an <%ae>%C(reset)'
co = checkout
sw = switch
re = restore
br = branch
bb = branch -vv --all
ci = commit
st = status
fp = fetch --prune --all
unstage = reset HEAD --
last = log -1 HEAD
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
# oldHighlight = red bold 52
oldHighlight = magenta 52
newNormal = green bold
# newHighlight = green bold 22
newHighlight = black 22
[color "diff"]
meta = yellow
# frag = magenta bold
frag = magenta reverse
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment