gitgithub

Updating a local repository with changes from a GitHub repository


I've got a project checked locally from GitHub, and that remote repository has since had changes made to it. What's the correct command to update my local copy with the latest changes?


Solution

  • Either:

    git pull origin master
    

    or:

    git pull origin main