I have setup of my personal fork with:
master
branch mirroring master
branch in upstream repo and fork
that is my main branch including my changes - and other feature/WIP/testing/testcase branches as usual.
master
branch has a default configured remote origin/master
where my repo lives and where I push update master
.
But I am pulling from upstream
remote.
How can I configure git so I can:
git push
while onmaster
branch and push toorigin
git pull upstream
while onmaster
branch and pull fromupstream/master
(right now I need to dogit pull upstream master
)
Now git pull upstream
is resulting in
Because this is not the default configured remote for your current branch
specify default branch for a non-default remote for pull may seem to be a duplicate but is not - "This does not answer the question, since this only works for the default remote (origin)!"
The same Specify default pull branch for a given remote - it allows setting only one