質問編集履歴
1
hub syncコマンドについてさらに調べたことを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,3 +3,47 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
hubコマンドがgithubでしか使えないことは理解しています。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
hubのマニュアルにhub syncについては情報が書いてありました。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
SYNOPSIS
|
18
|
+
|
19
|
+
hub sync [--color]
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
o If the local branch is outdated, fast-forward it;
|
24
|
+
|
25
|
+
o If the local branch contains unpushed work, warn about it;
|
26
|
+
|
27
|
+
o If the branch seems merged and its upstream branch was deleted, delete it.
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
If a local branch does not have any upstream configuration, but has a same-named branch on the remote, treat that as its upstream branch.
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
fetchして、それぞれのbranchを更新できれば更新すると言う感じでしょうか。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
`pull --all` は hub のマニュアルにあるような以下の動きはしていないように見えます。。。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
> o If the branch seems merged and its upstream branch was deleted, delete it.
|