Git pull - default remote and branch using -u option - works with push but not pull

前端 未结 3 1356
猫巷女王i
猫巷女王i 2021-02-10 10:21

I am on Git version 2.6.3, and get this message when just running

git pull

\"There is no tracking information for the current br

3条回答
  •  一个人的身影
    2021-02-10 10:59

    You can use this command to set the upstream of your current branch $ git branch --set-upstream-to=origin/master

    This way your setting the upstream branch to master by default when pulling and pushing without actually using a push or pull command.

    Now try to git pull and it should start gathering everything from your repository and after that it will say it's Already up-to-date

    If you have any further questions, I'll be happy to assist.

提交回复
热议问题