![]() |
![]()
| ![]() |
![]()
NAMEgit-sync - Sync local branch with remote branch SYNOPSISgit sync [--soft] [--force] [ <remote> <branch> ] DESCRIPTIONSync 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 unless you add -s(--soft). OPTIONS--soft or -s Add this flag if you want to preserve untracked files. --force or -f Add this flag to disable interaction. EXAMPLESSync local branch with its upstream
Sync local branch with origin/master
Sync without cleaning untracked files:
Sync without interaction:
AUTHORWritten by Takuma Yamaguchi <kumon0587@gmail.com> REPORTING BUGS<https://github.com/tj/git-extras/issues> SEE ALSO<https://github.com/tj/git-extras>
|