how to

How to update(fetch) main branch without switching to main?

Sep 28, 2025
softwares-and-toolsgitfetch
1 Minutes
18 Words
1
git fetch <远程仓库> <源分支>:<目标分支>
2
3
git fetch origin main:main
Article title:How to update(fetch) main branch without switching to main?
Article author:Julyfun
Release time:Sep 28, 2025
Copyright 2025
Sitemap