Last active
May 4, 2017 19:05
-
-
Save rustybailey/b8fd17523d6dfc9cf06a to your computer and use it in GitHub Desktop.
Gitconfig (Windows)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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