The ‘git pull origin master’ command obtains commits from the master branch of the origin that could be the local origin or master branch. Then, it merges the origin or master into the currently checked out branch.