LoginSignup
1
3

More than 5 years have passed since last update.

gitマージ確認について

Last updated at Posted at 2018-03-26

今更ながら備忘録。

ローカルにチェックアウトしたブランチだけでなく、
マージされたかブランチ名を指定すれば[branchname]に[targetBranchName]がマージされているか確認できる。

###[targetBranchName]が[branchname]にマージされているか
#単一検索
git branch -r --merged [branchname] | grep [targetBranchName]
#複数検索
git branch -r --merged [branchname] | grep -e [targetBranchName1] -e [targetBranchName2]

###[targetBranchName]が[branchname]にマージされていないか
git branch -r --no-merged [branchname] | grep [targetBranchName]
#複数検索
1
3
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
1
3