Skip to main content
Remote commands enable collaboration by synchronizing your local repository with remote repositories. These commands are essential for working with teams and sharing code.

git-fetch

Download objects and refs from another repository

git-pull

Fetch from and integrate with another repository or a local branch

git-push

Update remote refs along with associated objects

Overview

These commands handle remote repository operations:
  • git-fetch downloads changes from a remote without merging
  • git-pull fetches and merges changes from a remote branch
  • git-push uploads local commits to a remote repository

Workflow

Typical remote workflow:
  1. Fetch - Download updates from remote
  2. Merge/Rebase - Integrate remote changes
  3. Push - Share your commits with others