Skip to content

Commit ca40d91

Browse files
waldyriousManagor
andauthored
git-fetch: add example for updating another branch (#19155)
Co-authored-by: Managor <[email protected]>
1 parent 7a37323 commit ca40d91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/common/git-fetch.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
- Deepen current shallow branch by 2 commits:
2727

2828
`git fetch --deepen 2`
29+
30+
- Update the `main` branch without switching to it (equivalent to `git pull`):
31+
32+
`git fetch {{origin}} main:main`

0 commit comments

Comments
 (0)