Skip to content

Commit

Permalink
VGV952CJW33-E-IR: Provide a branch update script.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Quallenauge committed Aug 6, 2020
1 parent 8525ff3 commit 73a07a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions updateGitRepo.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 73a07a5

Please sign in to comment.