Skip to content

Instantly share code, notes, and snippets.

@whoisj
Last active September 17, 2018 17:55
Show Gist options
  • Save whoisj/4c9c29db68e58ba2004f to your computer and use it in GitHub Desktop.
Save whoisj/4c9c29db68e58ba2004f to your computer and use it in GitHub Desktop.
[branch]
autosetupmerge = always
autosetuprebase = always
[user]
name = J Wyman
email =
[fetch]
prune = true
[push]
default = simple
[credential]
helper = manager
[core]
editor = \"C:/Program Files/Notepad++/notepad++.exe\" -multiInst -nosession -noPlugin $@
preloadindex = true
fscache = true
askpass = askpass
[alias]
amend = "!f() { git commit --amend --no-edit --no-verify --status $@; }; f"
edit = "!f() { \"C:/Program Files/Notepad++/notepad++.exe\" -multiInst -nosession -noPlugin $@; }; f"
detach = "!f() { git checkout --detach ${1:-HEAD}; }; f"
force = "!f() { git push --force-with-lease; }; f"
get = "!f() { git fetch -np $@; }; f"
logi = "!f() { git log --oneline --decorate --first-parent -30 $@; }; f"
logx = "!f() { git log --oneline --decorate --graph -30 $@; }; f"
nuke = "!f() { git clean -xdf; git reset --hard HEAD; }; f"
pick = "!f() { git cherry-pick $@; }; f"
resafe = "!f() { git config --global --unset http.proxy; git config --global --unset http.sslVerify; printf 'unsafe injection *disabled* for Fiddler tracing.\n'; }; f"
root = "!f() { git rev-parse --show-toplevel; }; f"
sweep = "!f() { git branch --merged src/master | xargs -n 1 git branch -D 2>/dev/null; git branch --list -r src/releases* | xargs -n 1 git branch --merged | xargs -n 1 git branch -D 2>/dev/null; }; f"
sync = "!f() { git fetch --all; git sweep; git push dst src/master:master; }; f"
unsafe = "!f() { git config --global http.proxy 127.0.0.1:8888; git config --global http.sslVerify false; printf 'unsafe injection *enabled* for Fiddler tracing.\n'; }; f"
[gc]
auto = 4096
[gc "refs/remotes/*"]
reflogExpire = 7 days
reflogExpireUnreachable = 2 days
[status]
relativePaths = false
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[difftool "bc4"]
cmd = \"C:/Program Files/Beyond Compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\"
[diff]
tool = bc4
[mergetool "bc4"]
cmd = \"C:/Program Files/Beyond Compare 4/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
prompt = false
trustExitCode = true
[merge]
tool = bc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment