in Git by

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

▼ Show 1 Answer

0 votes

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.

Learn More with Madanswer

Related questions

0 votes
asked Jun 8, 2020 in Git by DavidAnderson
0 votes