DOKK / manpages / debian 10 / git-extras / git-sync.1.en
GIT-SYNC(1) Git Extras GIT-SYNC(1)

git-sync - Sync local branch with remote branch

git sync [ <remote> <branch> ]

Sync local branch with <remote>/<branch>.

When <remote> and <branch> are not specified on the command line, upstream of local branch will be used by default.

All changes and untracked files and directories will be removed.

Sync local branch with its upstream

$ git sync

Sync local branch with origin/master

$ git sync origin master

Written by Takuma Yamaguchi <kumon0587@gmail.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

September 2018