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.
ローカル マシン上のファイルを誤って削除し、git シェルで git status を実行すると、それらのファイルが削除済みとしてマークされていることがわかります。これらのファイルをローカル マシンに復元するにはどうすればよいですか?
Git が削除済みステータスのファイルを表示している場合は、変更をコミットしていませんgit checkout <name of deleted file>。
git checkout <name of deleted file>