SYNOPSISgit sync [ <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.
EXAMPLESSync local branch with its upstream
$ git sync
Sync local branch with origin/master
$ git sync origin master