Pull remote main without checkout Published at 2025-07-08 Licensed under CC BY-NC-SA 4.0 softwares-and-toolsgitpull 强制更新本地 main 分支,使其与远程 main 分支保持一致 (移动语法, -f = force) git branch -f main origin/main