From d425b5f8d1d745fe6e6608a2d87931841ceec33f Mon Sep 17 00:00:00 2001 From: Vallabh Kansagara Date: Mon, 6 Aug 2018 16:00:39 +0530 Subject: [PATCH] Adding sync.sh for updating the project. --- sync.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sync.sh diff --git a/sync.sh b/sync.sh new file mode 100644 index 0000000..3330fb0 --- /dev/null +++ b/sync.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Used to sync the original project with local project. + +#Save existing working +git stash + +#add project url to current repository as upstream-live +git remote add upstream-live https://github.com/major/MySQLTuner-perl + +#Fetch updated code +git fetch upstream-live + +#Going back to the master branch for mearging latest code +git checkout master + +#Merge latest code with master branch. +git merge upstream-live/master