[git] Add some aliases for rebase and merge process; clean up tabs in the config
This commit is contained in:
parent
fe4fd1d8be
commit
b4a82263b6
1 changed files with 18 additions and 13 deletions
31
gitconfig
31
gitconfig
|
@ -4,11 +4,9 @@
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
quotepath = false
|
quotepath = false
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
[merge]
|
|
||||||
tool = Kaleidoscope
|
|
||||||
[alias]
|
[alias]
|
||||||
# Commits
|
# Commits
|
||||||
c = commit
|
c = commit
|
||||||
|
@ -35,9 +33,13 @@
|
||||||
|
|
||||||
# Merges and rebases
|
# Merges and rebases
|
||||||
m = merge
|
m = merge
|
||||||
|
ma = merge --abort
|
||||||
mt = mergetool
|
mt = mergetool
|
||||||
rb = rebase
|
rb = rebase
|
||||||
rbi = rebase --interactive
|
rbi = rebase --interactive
|
||||||
|
rbc = rebase --continue
|
||||||
|
rba = rebase --abort
|
||||||
|
rbs = rebase --skip
|
||||||
|
|
||||||
# Resets, moving HEAD
|
# Resets, moving HEAD
|
||||||
r = reset
|
r = reset
|
||||||
|
@ -49,21 +51,24 @@
|
||||||
|
|
||||||
# Remotes
|
# Remotes
|
||||||
p = push -u
|
p = push -u
|
||||||
|
pf = push -uf
|
||||||
f = fetch
|
f = fetch
|
||||||
sup = submodule update --recursive
|
sup = submodule update --recursive
|
||||||
[ui]
|
[ui]
|
||||||
color = true
|
color = true
|
||||||
[difftool "Kaleidoscope"]
|
|
||||||
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
|
|
||||||
[diff]
|
[diff]
|
||||||
tool = Kaleidoscope
|
tool = KS
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
[difftool "KS"]
|
||||||
|
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
|
||||||
|
[merge]
|
||||||
|
tool = KS
|
||||||
[mergetool]
|
[mergetool]
|
||||||
keepBackup = true
|
keepBackup = true
|
||||||
prompt = false
|
prompt = false
|
||||||
[difftool]
|
[mergetool "KS"]
|
||||||
prompt = false
|
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
|
||||||
[mergetool "Kaleidoscope"]
|
trustExitCode = true
|
||||||
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
|
|
||||||
trustExitCode = true
|
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue