I'd like to set up a git repository in which I can push/pull my changes to/from different locations depending on which branch I am.
The idea is to have two branches:
- master: for internal development (I'm disallowed to publish it at all) I
would push/pull from local Stash - dev: for pulling changes from github and contribute back, and also use it to merge changes occasionally to the master
I assume that with this setup I can easily handle internal/public development on the same project. Now I'm stuck at how to do this. I followed this answer but it seems to me that remote locations can be applied only on a whole repository rather than for separate branches.
How do fix this? If this is not the way to go, please suggest me a best practice.