Quantcast
Channel: Bashタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 2819

[Git] ファイルがどのbranchに含まているか検索する 

$
0
0

謎のmigrationがあるためgit log全体を検索
対象のファイルが含まれるコミットを発見

$ git log --all--'db/migrate/2020323*'

commit d178513009038b0d6473de95a685c9402da14123
Author: Cozy <dummy-mail@gmail.com>
Date:   Fri Mar 27 18:20:29 2020 +0900

    〇〇のcolumn名変更

あった。glob対応してるのが嬉しいね

git branchでコミットが含まれるbranchを検索して発見

$ git branch -a --contains d178513009038b0d6473de95a685c9402da14123
  remotes/origin/feature/dummy-feature-branch

これにて一件落着 🙏


Viewing all articles
Browse latest Browse all 2819

Trending Articles