From 02a9d74967fd7c79b26454ed307a98ab97a7d76b Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 1 Nov 2025 00:24:28 +0000 Subject: [PATCH 1/3] git-fetch: Add example for updating another branch --- pages/common/git-fetch.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-fetch.md b/pages/common/git-fetch.md index 49e5cdf6e46acc..e767e9471573fd 100644 --- a/pages/common/git-fetch.md +++ b/pages/common/git-fetch.md @@ -26,3 +26,7 @@ - Deepen current shallow branch by 2 commits: `git fetch --deepen 2` + +- Update a branch (equivalent to `git pull`) without checking it out: + +`git fetch {{origin}} {{main}}:{{main}}` From 9ceaa217dbc73421694f5c2a6f4e5af18301aa8e Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 2 Nov 2025 20:05:03 +0000 Subject: [PATCH 2/3] Update git-fetch.md --- pages/common/git-fetch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-fetch.md b/pages/common/git-fetch.md index e767e9471573fd..174969fe497986 100644 --- a/pages/common/git-fetch.md +++ b/pages/common/git-fetch.md @@ -27,6 +27,6 @@ `git fetch --deepen 2` -- Update a branch (equivalent to `git pull`) without checking it out: +- Update the `main` branch without switching to it (equivalent to `git pull`): `git fetch {{origin}} {{main}}:{{main}}` From 965890aff77e6f7838eaf254ce0b49f613766b06 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 2 Nov 2025 20:52:45 +0000 Subject: [PATCH 3/3] Update pages/common/git-fetch.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/git-fetch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-fetch.md b/pages/common/git-fetch.md index 174969fe497986..9dc10bcf94988f 100644 --- a/pages/common/git-fetch.md +++ b/pages/common/git-fetch.md @@ -29,4 +29,4 @@ - Update the `main` branch without switching to it (equivalent to `git pull`): -`git fetch {{origin}} {{main}}:{{main}}` +`git fetch {{origin}} main:main`