git fetch origin
时间: 2023-10-17 19:58:52 浏览: 116
git fetch与git pull的区别详解
5星 · 资源好评率100%
引用中提到了origin git@git.calmcar.com:ccg/ccperception.git (fetch),这是一个远程仓库的地址。在Git中,git fetch origin是用来从远程仓库origin中获取最新的提交信息,但并不会自动合并到本地分支中。它主要用于更新本地仓库的远程跟踪分支(origin/branch)的内容,以便在之后进行合并操作。中也提到了git fetch origin,但是它的用法稍有不同。在这个例子中,git fetch origin develop:new_branch表示在本地建立一个名为new_branch的分支,并将远程仓库origin的develop分支下载到new_branch分支中。这样可以在本地创建一个与远程仓库中develop分支相同的分支进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Git:远程分支----git fetch命令的使用](https://blog.csdn.net/qq_42780289/article/details/98049574)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [git常用开发命令](https://blog.csdn.net/qq_44804542/article/details/115526011)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文