Git - Remote and local Branch management

About

remote and local branch management

Management

Sync origin/master

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

Merge

To merge this work into your current working branch, you can run

git merge origin/branchName

Documentation / Reference







Share this page:
Follow us:
Task Runner