We use the github repository as our "central repository".
We plan to use several encoders on an intermediate server as follows:
- Encoders work on a separate branch on their local repo;
- Encoders push changes to github; and then
- Encoders fetch updates from github to server repo
So, in practice, in step 3, the encoders will run the following on an intermediate repo:
git checkout coderA-updates
git pull origin coderA-updates
git checkout master
Is there a way to update a specific branch without specifying git checkout first?
TL; DR: How do you do something like git pull origin remoteBranch localBranch without having to switch active branches?
Thanks:)
source share