Skip to content

Instantly share code, notes, and snippets.

@JetStarBlues
Created April 22, 2021 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JetStarBlues/9df06fd4bae598678f64f409de7b9254 to your computer and use it in GitHub Desktop.
Save JetStarBlues/9df06fd4bae598678f64f409de7b9254 to your computer and use it in GitHub Desktop.
Keeping a local repo up-to-date with origin

Keeping a local repo up-to-date with origin

  • Switch to main or master branch in local repo
    • git checkout main or git switch main
  • Fetch and merge changes from origin
    • git pull origin main

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment