Last active
May 3, 2022 19:03
-
-
Save rustybailey/5833755 to your computer and use it in GitHub Desktop.
Gitconfig (OSX)
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 main; git pull origin main; git co -; git rebase main" | |
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" | |
newbranch = "!f() { git co main; git pull --ff-only origin main; git co -b "$1";}; f" | |
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / | |
[core] | |
editor = subl -n -w | |
autocrlf = input | |
[color] | |
diff = auto | |
ui = auto | |
[credential] | |
helper = cache --timeout=86400 | |
[init] | |
defaultBranch = main | |
[bash] | |
enableStashStatus=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment