Skip to content

Instantly share code, notes, and snippets.

@thefrench77
Last active December 28, 2020 08:45
Show Gist options
  • Select an option

  • Save thefrench77/7b66ed7b91aedb6c1aa3 to your computer and use it in GitHub Desktop.

Select an option

Save thefrench77/7b66ed7b91aedb6c1aa3 to your computer and use it in GitHub Desktop.
Git config [MSYS2]
[core]
editor = subl -n -w
# editor = atom --wait
excludesfile = C:\\Users\brice\\.config\\git\\ignore
[push]
default = simple
[color]
ui = auto
[color "branch"]
current = yellow
local = green
remote = cyan
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = green
changed = yellow
untracked = red
[diff]
tool = beyondcompare4
guitool = beyondcompare4
[difftool]
prompt = false
[difftool "beyondcompare4"]
path = \"C:/Program Files/Beyond Compare 4/BComp.exe\"
cmd = \"C:/Program Files/Beyond Compare 4/BComp.exe\" "$(cygpath -w $LOCAL)" "$REMOTE"
[merge]
tool = BeyondCompare4
[mergetool]
prompt = false
[mergetool "BeyondCompare4"]
path = \"C:/Program Files/Beyond Compare 4/BComp.exe\"
cmd = \"C:/Program Files/Beyond Compare 4/BComp.exe\" "$(cygpath -w $LOCAL)" "$REMOTE" "$BASE" "$MERGED"
# trustExitCode = true
[gui]
fontui = -family Consolas -size 8 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Consolas -size 9 -weight normal -slant roman -underline 0 -overstrike 0
[rebase]
stat = true
[alias]
aa = add -A
co = checkout
br = branch
ci = commit
st = status
last = log --oneline -1 HEAD
unstage = reset HEAD --
ls = log --all --graph --date=relative --oneline --decorate
lg = log --all --graph --date=relative --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %Cred%d%Creset %s %Cgreen(%cr) %Cblue[%cn]%Creset'
ll = log --all --decorate --numstat --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment