Git pull/fetch with refspec differences

后端 未结 4 1599

Using refspec is a convenient way to grab a remote branch and create a similar one but with given name (or the other way round: create a remote one with a given name differe

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 15:48

    git fetch origin master:mymaster updates branch mymaster in the local repository by fetching from the master branch of the remote repository.

    git pull origin master:mymaster does above and merges it into the current branch.

提交回复
热议问题