After I pushed my work to the feature branch of a remote repository, someone merged it to the main branch.
Since then, I haven't made any change to my local working directory and local repository and the remote repository, while others have made changes to the remote repository.
Now I want to get the latest work from the remote repository,
- is
git pull
the correct command? - will I not need to merge, because my last commit is an ancestor of the current commit on the main branch?
Running git pull
doesn't succeed.
The output of running git pull
contains the following
There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> core-81
What does it mean?
Thanks.