logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-sync - Sync local branch with remote branch

Author

       Written by Takuma Yamaguchi <kumon0587@gmail.com>

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

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

Name

git-sync - Sync local branch with remote branch

Options

       --soft or -s

       Add this flag if you want to preserve untracked files.

       --force or -f

       Add this flag to disable interaction.

Reporting Bugs

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

See Also

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

                                                  October 2024                                       GIT-SYNC(1)

Synopsis

gitsync [--soft] [--force] [ <remote> <branch> ]

See Also