Skip to content

Instantly share code, notes, and snippets.

@lxhunter
lxhunter / merge.sh
Created October 8, 2016 09:30
Automated merging of branches into master for travis-ci or any other ci
#!/bin/bash
git config --global user.email '[email protected]'
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://[email protected]/${TRAVIS_REPO_SLUG}.git master