Git Tutorial What is the Difference Between git pull and git fetch simply explained

Git docs: The Difference Between git pull and git fetch is a fundamental key concept in Git. Let's take a look at this in a bit of detail


> "git pull" does a "git fetch" followed by a "git merge"

  • "git fetch" updates our remote-tracking branches which we can safely execute anytime since it doesn't change any of our local branches.
  • "git pull" brings a local branch up to date with it's remote branch; while also updating our other remote-tracking branches.