I have a setup with two servers (staging and production). Both of these has a master branch I can push to (I use heroku, not that it matters though).
Currently, I can push to staging with this command:
git push staging master
Which will push my local master
branch. However, I would like to have a local branch named staging
, which will push to the remote repository staging/master
. How can this be done?