0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Git】トピックブランチからトピックブランチ

Posted at

はじめに

実装工程が過渡期に入っているプロジェクトがあり、
プルリクのマージが追い付かないらしいです。

そこで、トピックブランチからトピックブランチ(featureブランチからfeatureブランチ)って作っていいのかな?って相談されたのですが、
「やめた方がよい」と回答しました。

developにマージするときに競合が発生すると思ったから。

でも、手軽に実験できる環境があったので試しにやってみました。

やること

  1. developブランチからトピックブランチ(feature/AAA)を作成する。
  2. トピックブランチ(feature/AAA)からトピックブランチ(feature/BBB)を作成する。
  3. トピックブランチ(feature/AAA)からdevelopブランチにプルリク投げてマージする。
  4. トピックブランチ(feature/BBB)からdevelopブランチにプルリク投げてマージする。

予想

競合が発生して「4.」 のプルリクが投げれない。

結果

普通にプルリク投げれてマージも出来た。

gitすごい。

feature/BBB 作った後に feature/AAA をいじいじした場合は、
feature/AAA から feature/BBB にプルした方がいいとは思う。(試してはいません)

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?