There’s an even easier way via git-subtree. Assuming you want to push your folder ‘output’ as the root to Heroku, you can do:
git subtree push --prefix output heroku master
It appears currently that git-subtree is being included into git-core, but I don’t know if that version of git-core has been released yet.
More Related Contents:
- Should I check in folder “node_modules” to Git when creating a Node.js app on Heroku?
- Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly
- How to link a folder with an existing Heroku app
- Cannot push to Heroku because key fingerprint
- heroku: src refspec master does not match any
- Getting an error pushing to github – Updates were rejected because a pushed branch tip is behind its remote
- failed to push some refs to [email protected]
- Heroku: How to push different local Git branches to Heroku/master
- After git push heroku – uploaded files on Heroku are lost
- Error: Cannot pull with rebase: You have unstaged changes
- git push heroku master says “Everything up-to-date”, but the app is not current
- Why do I obtain this error when deploying app to Heroku?
- Pushing to github after a shallow clone
- Error in git push heroku master through ssh behind proxy
- ‘git push heroku master’ is still asking for authentication
- What is the reason for “Procfile declares types -> (none)” in Heroku?
- How to push different local Git branches to Heroku/master
- New to GitHub, how to run the commands on Windows?
- How to find the nearest parent of a Git branch
- Re-doing a reverted merge in Git
- How to find/identify large commits in git history?
- How to squash all git commits into one?
- Git: Could not resolve host github.com error while cloning remote repository in git
- Git: ignore some files during a merge (keep some files restricted to one branch)
- How do I remove local (untracked) files from the current Git working tree?
- Why does Git tell me “Not currently on any branch” after I run “git checkout origin/”?
- What is the difference between git push origin and git push origin master
- When I do “git push”, what do the statistics mean? (Total, delta, etc.)
- Unable to authenticate with Git Bash to Visual Studio Team Services
- Git equivalents of most common Mercurial commands?