pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.34k stars 5.73k forks source link

Issue about git fetch example in remoteAdvanced6 #1070

Open MountainHigh168 opened 1 year ago

MountainHigh168 commented 1 year ago
image

When I click "git fetch" button,I think that only o/main should be update,not all the remote branch,is that right?

SoumyaBhattacharjee commented 1 year ago

When we do git fetch without any remote or branch specified, by default it pulls all the branches from origin. For specifying remote and branch you have to pass them as parameter git fetch remote branch
Ref: https://www.atlassian.com/git/tutorials/syncing/git-fetch