Differences between git pull origin master & git pull origin/master

前端 未结 3 1538
花落未央
花落未央 2020-12-04 04:39

What is the difference between git pull origin master and git pull origin/master ?

3条回答
  •  心在旅途
    2020-12-04 04:51

    git pull origin master will fetch all the changes from the remote's master branch and will merge it into your local.We generally don't use git pull origin/master.We can do the same thing by git merge origin/master.It will merge all the changes from "cached copy" of origin's master branch into your local branch.In my case git pull origin/master is throwing the error.

提交回复
热议问题