LoginSignup
1
0

More than 1 year has passed since last update.

最近知ったgit checkout のある動作

Posted at

次のように、Androidプロジェクトのディレクトリを削除した。

rm -rf .idea

そして、次のようにgit checkout 削除したディレクトリ名を実行してみた。

git checkout .idea

そしたら、次のように表示された。

Updated 4 paths from the index

今までAndroid StudioやVSCodeを使っていたので、意識したことがなかったが、どうやらこの動作はステージから作業ツリーに特定のファイルを戻す処理らしい。なので、削除されたファイルが削除される前の内容に復元されたみたいだ。

参考にした記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0