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 add .
そして今、その git add を元に戻したいと思います。どうすればそれを達成できますか?
git reset(これは と同等です) は、すべてのファイルgit reset HEADを un- add(より一般的には「unstage」) します。
git reset
git reset HEAD
add
Git ではrevert、既存のコミットを元に戻すために使用されます (通常は、しばらく前に行われたコミット、または他のユーザーと共有されたコミット)。コミットがまだ他のユーザーと共有されていない場合は、元に戻したい変更が最初から発生していないふりをすることができるように、最近の履歴を「書き換える」方法があります。
revert