LoginSignup
0
0

More than 5 years have passed since last update.

Gitのブランチの根をコマンドで探す

Last updated at Posted at 2019-03-15

コレは何?

Gitでブランチを始めた根を探したい時にどうするかについて方法をリファレンスにしたサイトから抜き出したメモ。

どうやる?

ストーリー

[ブランチ元][ブランチ先]に分岐したと仮定します。

[ブランチ先]が[ブランチ元]のどこから派生したかを知るには。

$ git show-branch --sha1-name [ブランチ元] [ブランチ先] | tail -1;
-- [x111xx] Merge pull request #21 from abcd/xxxx/yyyy

更にどのファイルが更新されたかを出力する。

$ git diff --stat HEAD x111xx;

リファレンス

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