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.
ローカルにいくつかのファイルをコミットしました。ここで、1 つのファイルを以前のバージョンにロールバックしたいと考えています。
例: コミット: A、B、C
したい: コミット: A, C ロールバック: B
誰でも私を助けることができますか?
ありがとう。
git checkoutまたはを使用したいgit show:
git checkout
git show
git checkout B -- path/to/file
または:
git show B:./path/to/file > ./path/to/file
次に、通常どおり追加してコミットします。