To synchronize your work, you run:
git fetch origin
It will fetch everything the remote server has that you don’t have yet.
git fetch updates your remote-tracking branches.
This command will:
- look up which server origin is
- fetches any data from it that you don’t yet have,
- and updates your local database,
- moving your origin/master pointer branch to its new, more up-to-date position
To merge this work into your current working branch, you can run
git merge origin/branchName