Skip to content

Instantly share code, notes, and snippets.

@drorweiss
Last active August 29, 2015 14:02
Show Gist options
  • Save drorweiss/0beeae0dda1844b777f2 to your computer and use it in GitHub Desktop.
Save drorweiss/0beeae0dda1844b777f2 to your computer and use it in GitHub Desktop.
Deployment from sub-dir to heroku
Normal push to heroku (From https://coderwall.com/p/ssxp5q):
git subtree push --prefix pythonapp heroku master
Initial push to heroku remote From http://stackoverflow.com/questions/13756055/git-subtree-subtree-up-to-date-but-cant-push
git push heroku `git subtree split --prefix pythonapp master`:master --force
Compact history after initial deploy From http://stackoverflow.com/questions/16134975/reduce-increasing-time-to-push-a-subtree
git subtree split --rejoin --prefix=<prefix> <commit...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment