Skip to content

Instantly share code, notes, and snippets.

@ChaiBapchya
Last active May 1, 2020 01:38
Show Gist options
  • Save ChaiBapchya/595f091a3a2e18d65912f3f115212af6 to your computer and use it in GitHub Desktop.
Save ChaiBapchya/595f091a3a2e18d65912f3f115212af6 to your computer and use it in GitHub Desktop.
Shell Script to rebase master & update the feature branch
#!/bin/bash
export GIT_SSH_COMMAND="ssh -i /home/ubuntu/src/id_rsa"
echo "Entering mxnet repo"
cd /home/ubuntu/src/incubator-mxnet
echo "checkout master"
git checkout master
echo "fetch upstream master"
git fetch upstream master
echo "merge upstream master into local master"
git merge upstream/master
echo "push to origin master"
git push origin master
echo "checkout feature branch"
git checkout update_gpu_toolchain
echo "fetch/pull from remote"
git pull
echo "merge master into feature"
git merge master
echo "push updated feature to remote"
git push origin update_gpu_toolchain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment