Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The GitHub for Mac app says it'll only work with the Git origin remote. This means that it'll only work with one remote.

My current remote is used to push to Heroku. Is there a way to set my origin remote to GitHub and then just set another remote to Heroku for pushing via the command line?

This way I can leverage the full features of the GitHub for Mac app but still be able to push to Heroku via the Git CLI.

share|improve this question
up vote 0 down vote accepted
git remote rename origin heroku
git remote add origin git://github.com/....

The remote rename command updates the branch configuration, so that running git push without any arguments will now push to heroku automatically.

If this doesn't happen for some reason, do it manually:

git config branch.master.remote heroku
share|improve this answer
    
Worked great! Thanks! – Robert Klubenspies Aug 16 '11 at 0:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .