Git - Remote and local Branch management

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - About

remote and local branch management

2 - Management

2.1 - 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

2.2 - Merge

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

git merge origin/branchName

3 - Documentation / Reference

code/version/git/sync.txt · Last modified: 2018/06/11 12:37 by gerardnico