From 73a07a5f8e0e54a654884943b4549f68f6da0e99 Mon Sep 17 00:00:00 2001 From: Quallenauge Date: Wed, 21 Feb 2018 23:43:00 -0100 Subject: [PATCH] VGV952CJW33-E-IR: Provide a branch update script. It's hard to follow this branch by using "git pull", since it would merge all changes together. I use the rebase method to lower the maintenance effort. Since the branch is pushed to github via "git push -f" the history is completly rewritten on github. The script updateGitRepo.sh creates a test branch, changes to it and removes the current branch. Then it checks out the development branch from origin and switches to it. --- updateGitRepo.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 updateGitRepo.sh diff --git a/updateGitRepo.sh b/updateGitRepo.sh new file mode 100755 index 00000000000..3a955b52ca8 --- /dev/null +++ b/updateGitRepo.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +exists=`git show-ref refs/heads/test` +if [ ! -n "$exists" ]; then + echo "Branch doesn't exists!" + git branch test +fi + +git checkout test && git branch -D master-lede && git fetch origin && git checkout -b master-lede origin/master-lede