From 39c5df64e6438f2bf96c78ee5b3fb1378b56541c Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Wed, 15 May 2024 04:37:35 +0300 Subject: [PATCH] :wrench: Add `branch` and `switch-to-branch` Makefile rules --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 097758382..fc787c68a 100644 --- a/Makefile +++ b/Makefile @@ -177,3 +177,15 @@ release: @cd helm-chart && cp -r . ../../kubeshark.github.io/charts/chart @cd ../../kubeshark.github.io/ && git add -A . && git commit -m ":sparkles: Update the Helm chart" && git push @cd ../kubeshark + +branch: + @cd ../worker && git checkout master && git pull && git checkout -b $(name); git push --set-upstream origin $(name) + @cd ../hub && git checkout master && git pull && git checkout -b $(name); git push --set-upstream origin $(name) + @cd ../front && git checkout master && git pull && git checkout -b $(name); git push --set-upstream origin $(name) + @cd ../kubeshark && git checkout master && git pull && git checkout -b $(name); git push --set-upstream origin $(name) + +switch-to-branch: + @cd ../worker && git checkout $(name) + @cd ../hub && git checkout $(name) + @cd ../front && git checkout $(name) + @cd ../kubeshark && git checkout $(name)