Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.