-
-
Save The-Doggy/b448b0ebb5f7c864373173431eca4947 to your computer and use it in GitHub Desktop.
Automated merging of branches into master for travis-ci or any other ci
This file contains hidden or 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
| #!/bin/bash | |
| git config --global user.email 'travis@travis-ci.org' | |
| git config --global user.name 'Travis' | |
| git remote set-branches --add origin master | |
| git fetch | |
| git reset --hard | |
| git checkout master | |
| git merge --ff-only "$TRAVIS_COMMIT" | |
| git push git+ssh://git@github.com/${TRAVIS_REPO_SLUG}.git master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment