#author("2020-09-01T07:01:58+09:00","default:ryuichi","ryuichi")
#author("2020-09-01T07:04:25+09:00","default:ryuichi","ryuichi")
* git rmの取消し [#k0634658]

*** git rmするまで [#w4be5d6c]

 > git ls-files   # (1)
 1.txt
 > git rm 1.txt   # (2)
 rm '1.txt'
 > git status
 ## master
 D  1.txt

- (1) ワーキングリポジトリにファイル1.txtが存在している
- (2) このファイルをgit rmする

*** git rmの取消し [#ha5119c1]

 > git checkout HEAD 1.txt

間違ってgit rm foo.txtした場合に、foo.txtを復活させる。



トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS