質問編集履歴
1
hub syncコマンドについてさらに調べたことを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
hub syncとgit pull --allの違いを教えてください。
|
2
2
|
|
3
|
-
hubコマンドがgithubでしか使えないことは理解しています。
|
3
|
+
hubコマンドがgithubでしか使えないことは理解しています。
|
4
|
+
|
5
|
+
|
6
|
+
hubのマニュアルにhub syncについては情報が書いてありました。
|
7
|
+
|
8
|
+
```
|
9
|
+
SYNOPSIS
|
10
|
+
hub sync [--color]
|
11
|
+
|
12
|
+
o If the local branch is outdated, fast-forward it;
|
13
|
+
o If the local branch contains unpushed work, warn about it;
|
14
|
+
o If the branch seems merged and its upstream branch was deleted, delete it.
|
15
|
+
|
16
|
+
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.
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
fetchして、それぞれのbranchを更新できれば更新すると言う感じでしょうか。
|
21
|
+
|
22
|
+
`pull --all` は hub のマニュアルにあるような以下の動きはしていないように見えます。。。
|
23
|
+
|
24
|
+
|
25
|
+
> o If the branch seems merged and its upstream branch was deleted, delete it.
|