Skip to content

Instantly share code, notes, and snippets.

@wayferer
Created July 10, 2019 02:54
Show Gist options
  • Save wayferer/723bf415f7022540d6eb86d83c3527aa to your computer and use it in GitHub Desktop.
Save wayferer/723bf415f7022540d6eb86d83c3527aa to your computer and use it in GitHub Desktop.
# Push a subfolder to heroku
git subtree push --prefix SUBFOLDERNAME REMOTENAME master
# Push a non-master branch subfolder to heroku
git push REMOTENAME `git subtree split --prefix SUBFOLDER NONMASTERBRANCH`:master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment