I have a local branch "gh" that I always want to push to my account on github; I also have another local branch "lab" that I always want to push to my organization's account on github.
I have setup two remotes (gh and lab) for that.
$ git remote -v
gh git@Ninguem.github.com:Ninguem/prj.git (fetch)
gh git@Ninguem.github.com:Ninguem/prj.git (push)
lab git@Ninguem.github.com:lab-rasparta-org/prj.git (fetch)
lab git@Ninguem.github.com:lab-rasparta-org/prj.git (push)
I'm afraid to inadvertently mess the two when pushing. Is there a way to prevent that?
Note:
I've already fetched the two successfully, so I thing they're somehow "linked" together correctly... how do I manage what branches are "linked" to what remote branches and is there a safety mechanism?