You need to update your local repos. What git commands will you use?

Technology CommunityCategory: GitYou need to update your local repos. What git commands will you use?
VietMX Staff asked 3 years ago

It’s a two steps process. First you fetch the changes from a remote named origin:

git fetch origin

Then you merge a branch master to local:

git merge origin/master

Or simply:

git pull origin master

If origin is a default remote and ‘master’ is default branch, you can drop it eg. git pull.