diff --git a/pages/common/git-fetch.md b/pages/common/git-fetch.md index 49e5cdf6e46acc..9dc10bcf94988f 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 the `main` branch without switching to it (equivalent to `git pull`): + +`git fetch {{origin}} main:main`