How can using the git pull command drag all changes to the local repository?

Now he writes:

There is no tracking information for the current branch.
Please specify which branch you want to merge with.

Before it turned out through:

 git fetch git merge origin/master 
  • 2
    git pull origin master: master? - Mr. Brightside

1 answer 1

you probably created a new branch ( ваша-новая-ветка ) and when you run git pull get this message:

 $ git pull 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> новая-ветка 

There is a hint right in the message. short retelling:

  1. for a one-time “infusion” from (for example) the master branch from the origin repository, do:

     $ git pull origin master 
  2. so that in this thread you can perform git pull without arguments, and at the same time there was an "infusion" from the master branch of the origin repository, run:

     $ git branch --set-upstream-to=origin/master ваша-новая-ветка