git fetch -p
时间: 2023-10-09 21:07:46 浏览: 185
Fetch
git fetch -p命令用于从远程仓库获取最新的代码,并且删除本地已经不存在的远程分支。它的作用是保持本地分支与远程仓库的同步,并清理本地已经被删除的远程分支。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [GIT常用的几个指令](https://blog.csdn.net/loney_wolf/article/details/100162214)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [git fetch -p 获取远程仓库的新分支以及删除远程仓库已删除的分支](https://blog.csdn.net/kunkliu/article/details/128248686)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文