以下リポジトリがあったとします。
git clone -b master git@example.com:hoge/hoge.git echo "1です" > 1.txt git add 1.txt git commit -m "1コミット" git push origin master git branch develop ############ ここからdevelop echo "2です" > 2.txt git add 2.txt git commit -m "2コミット" echo "3です" > 3.txt git add 3.txt git commit -m "3コミット" echo "4です" > 4.txt git add 4.txt git commit -m "4コミット" echo "5です" > 5.txt git add 5.txt git commit -m "5コミット" git add ... #この後100件ぐらいコミットがあるとする git push origin develop #このあとブラウザ上でmasterにdevelopをマージ
後々"3コミット"が間違っていることに気づいて
masterからfeatherブランチを切って"1コミット"部分までロールバックしたとします。
ここから"2コミット"、”4コミット"、"5コミット"を
featureに足すというようなことは以下のような形で出来るのでしょうか?
git なんとか [developの2コミットのリビジョン] git なんとか [developの4コミットのリビジョン] git なんとか [developの5コミットのリビジョン]
前回同じような質問をしましたが、今回はロールバックしたため、
追加時のコミットlogがgit logにでません。
一応"3コミット"をrevertするという方法でも回復できそうなのは知ってますが、追加する方法が知りたいのです。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/09 01:15