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.
重複の可能性: git reset --hard HEAD~1 の取り消し
コマンドラインを使用しました:
git reset --hard HEAD^
どうすればやり直せますか?
HEAD (前の) に戻りたい場合は、次のようにします。
git reset --hard HEAD@{1}
作業ディレクトリの変更とステージングされた変更は、実行後に失われ、git reset --hard元に戻すことができないことに注意してください。
git reset --hard