Skip to content

Instantly share code, notes, and snippets.

@rustybailey
Last active May 4, 2017 19:05
Show Gist options
  • Save rustybailey/b8fd17523d6dfc9cf06a to your computer and use it in GitHub Desktop.
Save rustybailey/b8fd17523d6dfc9cf06a to your computer and use it in GitHub Desktop.
Gitconfig (Windows)
[user]
name = [Your Name]
email = [Your Email]
[alias]
co = checkout
rebase-this = "!git co master; git pull origin master; git co -; git rebase master"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassume-all = "!git ls-files -v | grep ^h | cut -c 3-" | xargs -L1 git update-index --no-assume-unchanged
assume-all = "!git ls-files -m" | xargs -L1 git update-index --assume-unchanged
fetchbranch = "!f() { git fetch origin "$1"; git co "$1"; git pull --ff-only origin "$1";}; f"
[core]
editor = subl -n -w
autocrlf = input
[color]
diff = auto
ui = true
[credential]
helper = cache --timeout=86400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment