Adding sync.sh for updating the project.
This commit is contained in:
parent
07e76709ee
commit
d425b5f8d1
1 changed files with 17 additions and 0 deletions
17
sync.sh
Normal file
17
sync.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue