File: git-sync.md

package info (click to toggle)
git-extras 7.4.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: sh: 4,312; python: 994; makefile: 146
file content (55 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
git-sync(1) -- 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 &lt;<kumon0587@gmail.com>&gt;

## REPORTING BUGS

&lt;<https://github.com/tj/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/tj/git-extras>&gt;