So, you need to be on a branch. That is because 'pull' is a fetch, then a merge into the current branch.
You could read about 'remote tracking branches' and use just 'fetch', Or you could start by checking out (or creating) your new current (e.g. master) branch. You did not say how you got to this situation. I guess you have just initialised an empty repo and are now trying to get the content from your fork on some server. If that is the case you are better to simply use `git clone` which will bypass all these mysteries. Philip On Thursday, October 3, 2019 at 5:18:26 PM UTC+1, Hongyi Zhao wrote: > > $ git pull > You are not currently on a branch. > Please specify which branch you want to merge with. > See git-pull(1) for details. > > git pull <remote> <branch> > > > How to solve this issue? > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/5e472816-9701-48c5-92b9-e4967d592f6a%40googlegroups.com.