githubteacher / githubfordevelopers-april

GitHub for Developers Training
4 stars 11 forks source link

What is difference between "Fetch" and "Pull" ?? #111

Closed shidhupatil1149 closed 7 years ago

brianamarie commented 7 years ago

@shidhupatil1149 Great question! 'Pull' is a combination command.

git pull = git fetch + git merge

AKA, git fetch updates your remote tracking branches. git pull does that, AND updates the branch you're on with any new work on the remote branch. Does that answer your question?

shidhupatil1149 commented 7 years ago

yes, thank you

brianamarie commented 7 years ago

🎉