1

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.

1 Answer 1

0
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
0

You must log in to answer this question.

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