.gitconfig: Add options and aliases for git submodules
This commit is contained in:
parent
e2f2acb546
commit
f850f3431f
|
|
@ -7,14 +7,24 @@
|
||||||
[pull]
|
[pull]
|
||||||
ff = only
|
ff = only
|
||||||
|
|
||||||
|
[push]
|
||||||
|
recurseSubmodules = check
|
||||||
|
|
||||||
|
[submodule]
|
||||||
|
recurse = true
|
||||||
|
|
||||||
[pager]
|
[pager]
|
||||||
branch = false
|
branch = false
|
||||||
config = false
|
config = false
|
||||||
stash = false
|
stash = false
|
||||||
|
|
||||||
|
[status]
|
||||||
|
submodulesummary = 1
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
guitool = gvimdiff
|
guitool = gvimdiff
|
||||||
|
submodule = log
|
||||||
|
|
||||||
[diff "ansible-vault"]
|
[diff "ansible-vault"]
|
||||||
textconv = ansible-vault view
|
textconv = ansible-vault view
|
||||||
|
|
@ -45,3 +55,6 @@
|
||||||
|
|
||||||
# Reset HEAD to last commit, but keep files as they are
|
# Reset HEAD to last commit, but keep files as they are
|
||||||
undo = reset HEAD~1 --mixed
|
undo = reset HEAD~1 --mixed
|
||||||
|
|
||||||
|
# Submodule helpers
|
||||||
|
sm-update = submodule update --init --recursive --remote --merge
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue