Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォークで2つのコミットを潰し、githubでマスターするためのプルリクエストがありました。
最初のコミットには、いくつかのフォーマットの変更があります。
プルリクエストでは、マスターにプッシュしたくない、行ったフォーマットの変更が表示されています。
それらの変更を表示せずにプルリクエストを受け取る方法はありますか?
新しいブランチを作成します。
git checkout -b newbranch <commit-before-squashed-commits>
チェリーはあなたが望むものを選びます。ID がない場合は、 を参照しgit reflogて見つけてください。
git reflog
git cherry-pick <commit-id-of-one-you-want>
それからそれを押してください。