私はちょうど空のメッセージで私のreflogの項目に気づいた。あなたは何がログに空のアイテムを作成できるか考えていますか? fadea5a [email protected]{6}: merge stable/abc: Merge made by the 'recursive' strategy.
b03c8c7 [email protected]{7}: merge stable/xyz: M
具体的な問題はありませんが、過去に誤ってインデックスを壊してしまい、特定のファイルの前の状態に戻ることを希望しました。 。 いくつかの例の場合は、以下のとおりです。 $ git add <file>
# find out that I already had an indexed version of <file>,
# and that for some reason I shouldn't
は、はgitので追跡し、ローカルで変更されたファイルてみましょう。ファイルがスタッシュにすぎ 続いた。またより : git stash pop # if you did it, see [this link][1]
git checkout a # if accidently you did only this - you lose
は、そのファイル内のすべての変更を破棄します。 この操