Say I added a new remote repo under my project folder by:
git remote add origin2 ADDRESS_OF_NEW_REMOTE_REPO
then, I start to push my code to my new remote repo. Locally, my branch name is "develop
", I want to push to my new remote repo with a different branch name, say "production
", can I simply do this by command:
git push origin2 production
though locally, I am under branch "develop
" ? What is the correct way to do this? and what potential problems could be caused by doing this?