What’s the difference between ‘git pull’ and ‘git fetch’?

  • git fetch: gets changes to update your local repo, but doesn’t overwrite any files you have changed locally
  • git pull: does a ‘git fetch’ then ‘git merge’ to pull all changes, and merge any changes to files you’re currently working on too

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.