gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 13:08:32 24 4
gpt4 key购买 nike

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

我的意思是 master:master 部分:我知道 git fetch origin 是什么意思,但是 master:master 部分呢?

最佳答案

remote(origin)之后的参数是refspecs

使用 master:master 会覆盖你的 master 分支;见this answer .

参见 this answer更多关于 git fetch 有和没有 refspec 参数的行为。

关于git - `git fetch origin master:master` 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36214756/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com