1GIT-SYNC(1)                       Git Extras                       GIT-SYNC(1)
2
3
4

NAME

6       git-sync - Sync local branch with remote branch
7

SYNOPSIS

9       git sync [--soft] [--force] [ <remote> <branch> ]
10

DESCRIPTION

12       Sync local branch with <remote>/<branch>.
13
14       When  <remote>  and <branch> are not specified on the command line, up‐
15       stream of local branch will be used by default.
16
17       All changes and untracked files and directories will be removed  unless
18       you add -s(--soft).
19

OPTIONS

21       --soft or -s
22
23       Add this flag if you want to preserve untracked files.
24
25       --force or -f
26
27       Add this flag to disable interaction.
28

EXAMPLES

30       Sync local branch with its upstream
31
32
33
34           $ git sync
35
36
37
38       Sync local branch with origin/master
39
40
41
42           $ git sync origin master
43
44
45
46       Sync without cleaning untracked files:
47
48
49
50           $ git sync -s origin master
51
52
53
54       Sync without interaction:
55
56
57
58           $ git sync -f
59
60
61

AUTHOR

63       Written by Takuma Yamaguchi <kumon0587@gmail.com>
64

REPORTING BUGS

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

SEE ALSO

69       <https://github.com/tj/git-extras>
70
71
72
73                                  August 2022                      GIT-SYNC(1)
Impressum