How do I update my branch of my forked repo with the current changes in the master
of the main repo.
The scenario is I have forked a repo(say A
) and also cloned it in my machine. Now I created a branch(say xyz
) and created a PR in the original repo. Now it's been a while and the original repo is way ahead in commits. Now I wish to update my branch(xyz
) with the latest changes in that file.
I updated my local by creating an upstream, fetching and pulling it. This worked for the master branch. But if I do the same with xyz
it says:
fatal: Couldn't find remote ref xyz
.
I am not able to figure out the issue.