-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" == "release" ]; then | ||
SOURCE_BRANCH="prerelease" | ||
DESTINATION_BRANCH="release" | ||
elif [ "$1" == "prerelease" ]; then | ||
SOURCE_BRANCH="master" | ||
DESTINATION_BRANCH="prerelease" | ||
else | ||
echo "Please provide the destination branch name as an argument." | ||
exit 1 | ||
fi | ||
|
||
git checkout "$SOURCE_BRANCH" | ||
git pull origin "$SOURCE_BRANCH" | ||
git checkout "$DESTINATION_BRANCH" | ||
git merge "$SOURCE_BRANCH" -m "merge "$SOURCE_BRANCH" into "$DESTINATION_BRANCH"" | ||
git push | ||
git checkout "$SOURCE_BRANCH" | ||
git pull origin "$SOURCE_BRANCH" | ||
git merge "$DESTINATION_BRANCH" -m "merge $DESTINATION_BRANCH into $SOURCE_BRANCH" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters