The publish command generates static files for your site from the current state of your files in your source and sass directories. It then deploys your site to your remote server.
The default command publishes to your GitHub Pages site or rsync managed site as per your specifications during your Octopress install. You have the option to specify deployment to Heroku.
GitHub Pages and Heroku deployments automatically git commit your changed directory files.
|--heroku||deploy to Heroku|
Note that all of these deployment methods require you to complete your remote deployment configuration in Octopress as documented here before you use the command.
Deploy to Server with rsync
Deploy to GitHub Pages
Deploy to Heroku
oc publish --heroku