私はマスターにたくさんのコミットを行い、後でそれらがブランチにあるべきだったことに気付きました。
マスターのリベース、マージ、リセットについてさまざまなことを見てきました。しかし、操作の試みは、私がやろうとしていることのように見える歴史を生み出しませんでした.
私の試みは、マスターを時間内に戻すにはrebase --onto
との組み合わせが必要であると私に信じさせます。reset --hard
しかし、Git の分岐についての私の理解には、まだ不十分な点があります。これを行うことの一部は、それをどのように使用できるかを学ぶことです。
私が移動しようとしている変更はどれもプッシュされていないことに注意してください。
現時点の
* remote/trunk
--o--a--b--c--d--e--f <- master
|
o <- remote branch foo
望ましい結果
* remote/trunk
--o <- master
|
o--a--b--c--d--e--f <- remote branch foo