Here are some of the git commands I often need to use with rails. I’m putting them in my blog so I hopefully will memorize them, or, at the very least have a nice little reference post.
Setting up Heroku:
heroku keys:add ~/.ssh/id_rsa.pub
Adding previous Heroku repository to project:
git remote add origin [email protected]:caius/foo.git
After pushing changes to Heroku:
heroku run rake:db:migrate
heroku run rake:db:schema:load