git pull retrieves changes from a remote repository and integrates them into the current local branch, keeping a local project aligned with shared GitHub work. section 19.5
A practical synchronization sequence is:
- Run git fetch to download remote branch updates, then run git pull to update the working branch. section 19.5
- Review the resulting update, which may be a fast-forward that changes local files to match the remote branch. section 19.5
Updating MyPSTool
After git fetch reports origin/main advancing from 737445d to 01f65d7, git pull updates the project with a fast-forward, changing data.txt and file1.ps1. section 19.5
PS C:\MyPSTool> git pull Updating 737445d..01f65d7 Fast-forward data.txt | 1 - file1.ps1 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) PS C:\MyPSTool>
Inspect the command output showing a fast-forward pull and the files it changes. section 19.5
