1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 18:46:13 +01:00
AMR/git_merge.sh

27 lines
896 B
Bash
Raw Normal View History

2019-05-20 14:16:53 +02:00
#######################################################################
# To push new commits to the premaster branch, run: #
# bash git_premaster.sh "commit message" #
# #
# After successful CRAN checks, merge it to the master branch with: #
# bash git_merge.sh #
#######################################################################
# stash current changes
# git stash --quiet
# go to master
git checkout master --quiet
echo "changed branch to master"
# import everything from premaster
git merge premaster
# and send it to git
git push
# echo "pushed changes to master"
# return to premaster
git checkout premaster --quiet
echo "changed branch back to premaster"
# and get stashed changes back
# git stash apply --quiet