From 0435951baf034a11383702b67e15c74ef6242cd6 Mon Sep 17 00:00:00 2001 From: Paulo Custodio Date: Wed, 20 Oct 2021 10:01:11 +0100 Subject: Script to update repository --- challenge-001/paulo-custodio/update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 challenge-001/paulo-custodio/update.sh diff --git a/challenge-001/paulo-custodio/update.sh b/challenge-001/paulo-custodio/update.sh new file mode 100644 index 0000000000..83d7cebe71 --- /dev/null +++ b/challenge-001/paulo-custodio/update.sh @@ -0,0 +1,12 @@ +#!/bin/sh -ex + +git checkout master +git pull +git fetch upstream +git merge upstream/master --ff-only +git push -u origin master + +git checkout devel +git pull +git rebase master +git push --force -u origin devel -- cgit