Skip to content

Instantly share code, notes, and snippets.

@joecannatti
Last active April 7, 2016 19:35
Show Gist options
  • Save joecannatti/dd09cbd8f6cb8532f1865c2d2786bab3 to your computer and use it in GitHub Desktop.
Save joecannatti/dd09cbd8f6cb8532f1865c2d2786bab3 to your computer and use it in GitHub Desktop.
Update Bundle update
# requires that have installed hub, https://github.com/github/hub
git checkout master && git reset --hard origin/master && git pull origin master && git checkout -b gem-update-`date +%Y-%m` && gem install bundler && bundle update && rake && git add -A && git commit -m "Bundle update `date +%Y-%m`" && git push origin gem-update-`date +%Y-%m` && hub pull-request -m "Bundle update `date +%Y-%m`"; if [[ $? = 0 ]]; then echo "SUCCESS"; else echo "FAIL"; fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment