简体   繁体   English

`git fetch origin master:master`是什么意思?

[英]What does `git fetch origin master:master` mean?

What does git fetch origin master:master mean? git fetch origin master:master是什么意思?

I mean the master:master part: I know what git fetch origin means, but what about the master:master part? 我的意思是master:master部分:我知道git fetch origin意味着什么,但master:master部分呢?

The arguments after the remote ( origin ) are refspecs . 远程origin )后面的参数是refspecs

Using master:master will overwrite your master branch; 使用master:master将覆盖你的master分支; see this answer . 看到这个答案

See this answer for even more about git fetch 's behavior with and without refspec arguments. 有关git fetch在有和没有refspec参数的情况下的行为,请参阅此答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM