[ADD][GIT] Alias to push to new branch & track it

This commit is contained in:
Bruno BELANYI 2020-02-12 14:38:50 +01:00
parent 1a4b0a9dc6
commit 5fc613a7c0

View file

@ -70,6 +70,7 @@
assume = update-index --assume-unchanged assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-" assumed = "!git ls-files -v | grep ^h | cut -c 3-"
push-new = "!git push -u \"${1:-origin}\" \"$(git branch | grep '^* ' | cut -f2- -d' ')\""
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f