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

NAME

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

SYNOPSIS

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

DESCRIPTION

12       Sync local branch with <remote>/<branch>.
13
14       When  <remote>  and  <branch>  are  not  specified on the command line,
15       upstream 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

EXAMPLES

26       Sync local branch with its upstream
27
28
29
30           $ git sync
31
32
33
34       Sync local branch with origin/master
35
36
37
38           $ git sync origin master
39
40
41
42       Sync without cleaning untracked files:
43
44
45
46           $ git sync -s origin master
47
48
49

AUTHOR

51       Written by Takuma Yamaguchi <kumon0587@gmail.com>
52

REPORTING BUGS

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

SEE ALSO

57       <https://github.com/tj/git-extras>
58
59
60
61                                 January 2019                      GIT-SYNC(1)
Impressum