From 2f767593ef71ae7332321316aba45fc968d17d85 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Mon, 1 Nov 2021 09:16:02 -0400 Subject: [PATCH] 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. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 465cd3a..cb8e27c 100644 --- a/Makefile +++ b/Makefile @@ -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