質問編集履歴
8
ごじ
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gitでマージの利便性がよくわからない。リベースとかチェリーピックは
|
1
|
+
Gitでマージの利便性がよくわからない。リベースとかチェリーピックは便利だと思う
|
test
CHANGED
File without changes
|
7
ごじ
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gitでマージの利便性がよくわからない
|
1
|
+
Gitでマージの利便性がよくわからない。リベースとかチェリーピックはの方が便利だと思う
|
test
CHANGED
File without changes
|
6
誤字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
仮にdevelopブランチの状態が `master + (coomit) + (commit) + (commit)`だったとしてdevelopブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ`master`ブランチの状態が`master - (coomit) - (commit) - (commit)`という状態になければいけない。
|
9
|
+
仮にdevelopブランチの状態が `master + (coomit) + (commit) + (commit)`だったとしてdevelopブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ`master`ブランチの状態が`master - (developのcoomit) - (developのcommit) - (developのcommit)`という状態になければいけない。
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
`develop`ブランチで作業してる間に`master`ブランチに変更が加えられてcommitされていた場合、その時点で`master`ブランチの状態は`master -(coomit) - (commit) - (commit)`ではなく
|
13
|
+
`develop`ブランチで作業してる間に`master`ブランチに変更が加えられてcommitされていた場合、その時点で`master`ブランチの状態は`master -(developのcoomit) - (developのcommit) - (developのcommit)`ではなく、全く新しいmasterに生まれ変わってるので、`master`ブランチにいる時にdevelopブランチをマージしたらコンフリクトが起こるってことですよね。
|
14
14
|
|
15
15
|
|
16
16
|
|
5
誤字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
仮にdevelopブランチの状態が `master + (coomit) + (commit) + (commit)`だったとしてdevelopブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ`master`ブランチの状態が`master -(coomit)
|
9
|
+
仮にdevelopブランチの状態が `master + (coomit) + (commit) + (commit)`だったとしてdevelopブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ`master`ブランチの状態が`master - (coomit) - (commit) - (commit)`という状態になければいけない。
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
13
|
+
`develop`ブランチで作業してる間に`master`ブランチに変更が加えられてcommitされていた場合、その時点で`master`ブランチの状態は`master -(coomit) - (commit) - (commit)`ではなくなるので、`master`ブランチにいる時にdevelopブランチをマージしたらコンフリクトが起こるってことですよね。
|
14
14
|
|
15
15
|
|
16
16
|
|
4
誤字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
仮にdevelopブランチの状態が `master + (coomit) + (commit) + (commit)`だったとしてdevelopブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ`master`ブランチの状態が`master -(coomit) + (commit) + (commit)`という状態になければいけない。
|
10
10
|
|
11
11
|
|
12
12
|
|
3
誤字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,13 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
つまり、developブランチの変更をmasterブランチにコンフリクトせずに行いたければ、developブランチの状態が `master + (coomit) + (commit) + (commit)`という状態になければいけない。
|
9
|
+
つまり、developブランチの変更をmasterブランチにコンフリクトせずにマージを行いたければ、developブランチの状態が `master + (coomit) + (commit) + (commit)`という状態になければいけない。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
仮に`develop`ブランチで作業してる間に`master`ブランチに変更が加えられてcommitされていた場合、その時点で`master`ブランチの状態は`master -(coomit) + (commit) + (commit)`ではなくなるので、`master`ブランチにいる時にdevelopブランチをマージしたらコンフリクトが起こるってことですよね。
|
14
|
+
|
15
|
+
|
10
16
|
|
11
17
|
|
12
18
|
|
2
誤字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,12 +6,8 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
つまり、developブランチの変更をmasterブランチにコンフリクトせずに行いたければ、developブランチの状態が `master + (coomit) + (commit) + (commit)`という状態になければいけない。
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
あんまり、便利なコマンドではないなと思ったんですが、どう思われますか
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
`sampleディレクトリ`の中の`sample.txt`というファイルがあったとします。`sampleディレクトリ`に移動して`master`ブランチにて`sample.txt`にhello masterと書いてaddしてcommitした後に、`develop`ブランチを作成しcheckoutします。`develop`ブランチではhello developと書いて
|
1
|
+
`sampleディレクトリ`の中の`sample.txt`というファイルがあったとします。`sampleディレクトリ`に移動して`master`ブランチにて`sample.txt`にhello masterと書いてaddしてcommitした後に、`develop`ブランチを作成しcheckoutします。`develop`ブランチではhello developと書いてaddしてcommitして、masterブランチにチェックアウトしました。masterブランチにdevelopブランチの内容を取り込もうとして`git merge develop`とやって見ればコンフリクトしますよね。
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -7,3 +7,11 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
あんまり、便利なコマンドではないなと思ったんですが、どう思われますか
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
追記、mergeってリモートローカルのブランチを合流(リモートの更新情報をローカルに反映)させることなんですね。なんだか勉強不足で理解できないだけだと思い始めました
|