Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
GIT-SYNC(1)			   Git Extras			     GIT-SYNC(1)

NAME
     git-sync - Sync local branch with remote branch

SYNOPSIS
     git sync [--soft] [--force] [ <remote> <branch> ]

DESCRIPTION
     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 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.

EXAMPLES
     Sync local branch with its upstream

	 $ git sync

     Sync local branch with origin/master

	 $ git sync origin master

     Sync without cleaning untracked files:

	 $ git sync -s origin master

     Sync without interaction:

	 $ git sync -f

AUTHOR
     Written by Takuma Yamaguchi <kumon0587@gmail.com>

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

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

				   August 2022			     GIT-SYNC(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=git-sync&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help