1

If I am on a particular branch and I do a git fetch does it pull down all the data for that branch only or for all branches for that repository?

Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304

1 Answers1

2

git fetch fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. It means that it updates all <remote>/<branch> and all the tags.

git fetch <remote> <branch> fetches specified branch from specified repository only.