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:
@@ -14,3 +14,10 @@ make-update:
|
|||||||
@git stash
|
@git stash
|
||||||
-git subtree pull --prefix .gitlab git@gitlab.ducoterra.net:services/common.git main --squash
|
-git subtree pull --prefix .gitlab git@gitlab.ducoterra.net:services/common.git main --squash
|
||||||
@git stash pop
|
@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
|
||||||
|
|||||||
Reference in New Issue
Block a user