“You are not currently on a branch” error when trying to sync fork with upstream repository
问题 I made a fork of a GitHub repository. I fixed a bug, wrote a test and created a pull request which was merged into the original repository. So far, so good. Now I improved the test on my local machine. I want to create a new pull request with this improved test. But in the meantime, other commits have been made to the original, upstream repository. So I want to get my fork into sync with the upstream repository so that I can create the new pull request. Without fully grasping what I was doing