* 修正したがステージングしてないファイルを戻す [#cfcb1cce]

*** 修正したファイルを元のファイルに戻す [#zd22c198]
 vi test.txt               # (1) test.txtを修正する。
 git checkout test.txt     # (2) (1)の修正を戻す。

*** 修正したワーキングツリーを元の状態(HEAD)のワーキングツリーに戻す [#ufaec38f]
 vi test1.txt              # (1) test1.txt,test2.txtを修正する。
 vi test2,txt
 git reset --hard HEAD     # (2) (1)の修正を戻す。


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS