Sentry Answers>Git>

Pulling vs. fetching in Git

Pulling vs. fetching in Git

David Y.

The ProblemJump To Solution

What is the difference between git pull and git fetch?

The Solution

The git fetch command updates the remote tracking branches in a repository. In other words, it pulls the latest versions of the remote repository’s branches without applying any changes to local branches.

The git pull command performs a git fetch and then a git merge or git-rebase on the current branch in the local repository. In other words, it updates the repository’s remote-tracking branches and then brings the current local branch up to date with its remote version.

  • ResourcesWhat is Distributed Tracing
  • Syntax.fm logo
    Listen to the Syntax Podcast

    Tasty treats for web developers brought to you by Sentry. Get tips and tricks from Wes Bos and Scott Tolinski.

    SEE EPISODES

Loved by over 4 million developers and more than 100,000 organizations worldwide, Sentry provides code-level observability to many of the world’s best-known companies like Disney, Peloton, Cloudflare, Eventbrite, Slack, Supercell, and Rockstar Games. Each month we process billions of exceptions from the most popular products on the internet.

© 2024 • Sentry is a registered Trademark
of Functional Software, Inc.