Add make-push command

Add command to update the subtree from a child repo. This pushes to the
main branch of the common repo with only the relevant commits.
This commit is contained in:
ducoterra
2021-11-01 09:16:02 -04:00
parent 66b4fdb902
commit 2f767593ef

View File

@@ -14,3 +14,10 @@ make-update:
@git stash
-git subtree pull --prefix .gitlab git@gitlab.ducoterra.net:services/common.git main --squash
@git stash pop
.PHONY: make-push
make-push:
@make make-update
@git remote add common git@gitlab.ducoterra.net:services/common.git
@git subtree push --prefix .gitlab common main
@git remote remove common