タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

squashに関するmacneko-ayuのブックマーク (1)

  • git rebase で squash する - Change the World!

    このブログをご覧のみなさん、こんにちは。 Pull Request を送った後の指摘に対応していたところ「 squash してコミットを 1 個にまとめて」と言われたので、手順を調べたのでメモとして残しておきます。 squash には 2 種類ある squash はすべてのコミットを 1 つにまとめるもので以下の 2 種類があります。 git merge --squash [branch or commit] git rebase -i [commit] git merge –squash [branch or commit] 前者は git merge コマンドで実行している通り、[branch or commit] で指定した内容を 1 つにまとめて merge します。今回 Pull Request を送った自分に対して「 squash して」と言っているので、これとは別になります。

    git rebase で squash する - Change the World!
    macneko-ayu
    macneko-ayu 2018/04/25
    コマンドラインでやる方法を忘れていたので、参考になった
  • 1