Skip to content

Instantly share code, notes, and snippets.

@jjaferson
Last active June 17, 2020 16:20
Show Gist options
  • Save jjaferson/37f0090bc532e004013a69d7fbac3693 to your computer and use it in GitHub Desktop.
Save jjaferson/37f0090bc532e004013a69d7fbac3693 to your computer and use it in GitHub Desktop.
add a git upstream and pull

Remote repositories in Git

  • List remote repositories
    $ git remote -v

  • Add a remote repository
    $ git remote add <remote-repository-name> <URL>

  • Pull commits from a remote repository
    $ git fetch <remote-repository-name>

  • Rebase commits from a remote repository
    $ git rebase <remote-repository-name>/<remote-branch>

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