Rule #1: There are no rules.

Git: Pushing (Only) Some Commits

| Comments

Occasionally I’ll find myself deploying to Heroku but for one reason or another I’m not ready to roll out all of the commits I have on master. Maybe I’d like to roll out some of the changes, test, and then roll out the rest later.

You don’t want to just run a git push heroku master because that would push (and therefore deploy) everything. Instead, use git log to get hash of the commit you want to push up to (and including), and then run:

git push heroku [commit hash]:master