- 追加された行はこの色です。
- 削除された行はこの色です。
- Git/git rm/git rmの取消し へ行く。
- Git/git rm/git rmの取消し の差分を削除
#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を復活させる。