LoginSignup
3
3

More than 5 years have passed since last update.

コードレビュー待ってられないからちょっとどうなってるか確認したいのだが・・・

Posted at

まだマージされてないブランチをすべて今のブランチにマージする悪魔のスクリプト

git branch -r --no-merged | while read BRANCH; do git merge --no-ff ${BRANCH};done;unset BRANCH;

あるいはfeatureブランチに限定したりとかが実用的なのかもしれない

git branch -r --no-merged | grep feature | while read BRANCH; do git merge --no-ff ${BRANCH};done;unset BRANCH;

tmpブランチとか作って実行すると、容赦なくチャンプルーされたブランチが出来上がってしまう。確認には便利かもしれないが、間違ってpushすると場合によって死に至る。

3
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
3
3