Skip to content

Instantly share code, notes, and snippets.

@mike-boddin
Last active March 13, 2017 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-boddin/12ddc6341cf866f527a4 to your computer and use it in GitHub Desktop.
Save mike-boddin/12ddc6341cf866f527a4 to your computer and use it in GitHub Desktop.
Global git config (Windows)
[core]
autocrlf = true
editor = gitedit.sh
[user]
name = Mike Boddin
email = dev@autorisiert.net
[push]
default = simple
[alias]
pg = log --graph --decorate=short --date=relative --all
pullff = pull --ff-only
pullr = pull -r
stat = status --short --branch
[credential]
helper = cache --timeout=43200
[merge]
tool = kdiff3
[mergetool "kdiff3"]
path = $KDIFF_HOME/kdiff3.exe
[diff]
tool = kdiff3
guitool = kdiff3
[difftool "kdiff3"]
path = $KDIFF_HOME/kdiff3.exe
#!/bin/sh
NOTEPAD_HOME="c:/Program Files (x86)/Notepad++"
if [[ $(uname) == CYGWIN* ]] ; then
PARAMS="$(cygpath -w "$*")"
else
PARAMS="$*"
fi
echo "open editor for file '$PARAMS'"
"$NOTEPAD_HOME/notepad++.exe" -multiInst -nosession -noPlugin "$PARAMS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment