How to download changes from a remote repository?

git fetch remote_name

To download changes from a remote repositry use git fetch remote_name. This command is useful, when you have multiple remotes or your remote is not called "origin", which is the default remote name used by git.

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

Layer 1
Terminal Example
git fetch other_remote
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
Unpacking objects: 100% (3/3), 693 bytes | 231.00 KiB/s, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
From github.com:githint/playground-remote
 * [new branch]      readme-patch-1 -> other_remote/readme-patch-1

See git fetch to learn more about it.

Last modified on November 30, 2021.