gitgit-fetch

Git fetch origin vs git fetch --all


What is the difference between the following git commands?

git fetch origin

and

git fetch --all

Running them from the command line looks like they do the same thing.


Solution

  • git fetch origin fetch data only from origin, and git fetch --all fetch data from all remotes (origin is one of them)