|
@@ -27,18 +27,25 @@
|
|
|
[help]
|
|
[help]
|
|
|
autocorrect = 10
|
|
autocorrect = 10
|
|
|
|
|
|
|
|
-[diff]
|
|
|
|
|
- tool = default-difftool
|
|
|
|
|
|
|
|
|
|
-[difftool "default-difftool"]
|
|
|
|
|
|
|
+[merge]
|
|
|
|
|
+ tool = vscode
|
|
|
|
|
+[mergetool "vscode"]
|
|
|
|
|
+ cmd = code --wait --diff $LOCAL $REMOTE
|
|
|
|
|
+
|
|
|
|
|
+[diff]
|
|
|
|
|
+ tool = vscode
|
|
|
|
|
+[difftool "vscode"]
|
|
|
cmd = code --wait --diff $LOCAL $REMOTE
|
|
cmd = code --wait --diff $LOCAL $REMOTE
|
|
|
-[difftool "Kaleidoscope"]
|
|
|
|
|
- cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
|
|
|
|
|
|
|
|
|
|
[alias]
|
|
[alias]
|
|
|
|
|
+ gp = push
|
|
|
|
|
+ gpp = publish
|
|
|
|
|
+ rb = pull --rebase
|
|
|
|
|
+ rbc = rebase --continue
|
|
|
|
|
+ rba = rebase --abort
|
|
|
fancy-log = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
|
|
fancy-log = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
|
|
|
branches = for-each-ref --count=10 --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative) %09%(color:white)%(objectname:short) %(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads --no-merged
|
|
branches = for-each-ref --count=10 --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative) %09%(color:white)%(objectname:short) %(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads --no-merged
|
|
|
- timesheet = log --pretty=format:"%C(yellow)%h%Creset %C(green)%ad%Creset %C(cyan)%s" --author="`git config --get user.name`" --since='6am'
|
|
|
|
|
edit-conflicted = ! git diff --name-only | uniq | xargs code
|
|
edit-conflicted = ! git diff --name-only | uniq | xargs code
|
|
|
history = log -p --
|
|
history = log -p --
|
|
|
pushf = push --force-with-lease
|
|
pushf = push --force-with-lease
|
|
@@ -48,10 +55,10 @@
|
|
|
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
|
|
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
|
|
|
last = rev-list -1 HEAD
|
|
last = rev-list -1 HEAD
|
|
|
[core]
|
|
[core]
|
|
|
- editor = vim
|
|
|
|
|
excludesfile = /Users/tom/.gitignore_global
|
|
excludesfile = /Users/tom/.gitignore_global
|
|
|
whitespace = tab-in-indent,trailing-space,space-before-tab
|
|
whitespace = tab-in-indent,trailing-space,space-before-tab
|
|
|
ignorecase = false
|
|
ignorecase = false
|
|
|
|
|
+ editor = vim -c 'startinsert'
|
|
|
|
|
|
|
|
[merge]
|
|
[merge]
|
|
|
tool = code
|
|
tool = code
|
|
@@ -68,3 +75,10 @@
|
|
|
# rebase = preserve
|
|
# rebase = preserve
|
|
|
[pull]
|
|
[pull]
|
|
|
ff = only
|
|
ff = only
|
|
|
|
|
+[advice]
|
|
|
|
|
+ detachedHead = false
|
|
|
|
|
+[filter "lfs"]
|
|
|
|
|
+ clean = git-lfs clean -- %f
|
|
|
|
|
+ smudge = git-lfs smudge -- %f
|
|
|
|
|
+ process = git-lfs filter-process
|
|
|
|
|
+ required = true
|