git-fetch
Download objects and refs from a remote repository. tldr-pages
On several platforms
Several platforms
Fetch the latest changes from the default remote upstream repository (if set)
git fetchIdentifyFetch new branches from a specific remote upstream repository
git fetch remote_nameIdentifyFetch the latest changes from all remote upstream repositories
git fetch --allIdentifyAlso fetch tags from the remote upstream repository
git fetch --tagsIdentifyDelete local references to remote branches that have been deleted upstream
git fetch --pruneIdentifyDeepen current shallow branch by 2 commits
git fetch --deepen 2IdentifyUpdate the main branch without switching to it (equivalent to git pull)
git fetch origin main:mainIdentify