How to download remote changes from origin?

git fetch

To download remote changes from origin use git fetch. No additional parameter is needed, since fetch uses the origin remote by default.

You will need to set up a remote for git fetch to work.

Layer 1
Terminal Example
git fetch
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), 1.31 KiB | 336.00 KiB/s, done.
   9a2b1f6..9d3aced  main       -> origin/main
 * [new branch]      patch-1    -> origin/patch-1

See git fetch to learn more about it.

Last modified on November 30, 2021.

You might also like