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.
私はブランチ (SRC) で作業していて、別のブランチ (DEST) に移動する予定だったコミットされていない変更がたくさんありました。私は SRC にいて、「git merge DEST」を実行しました。以前に変更をコミットするのを忘れていました。まるで何日もの仕事が失われたかのように見えます。どんな助けでも大歓迎です。変更を回復する方法はありますか?
次のようにして、マージだけの変更を元に戻すことができます
git reset --merge