LoginSignup
0
0

More than 1 year has passed since last update.

不要なファイルがgitの管理下に置かれていたので削除した。

Last updated at Posted at 2022-07-15

前提

新しいプロジェクトに参加した際に管理する必要のないファイルがgitの管理下に置かれていたので削除した。

gitignoreを作成

今後の変更がgitに監視されないようにgitignoreに管理下から外したいファイルを記述します。

これで次回以降の変更が監視されなくなります。

gitignoreの作成には次のサイトが便利。

gitignore.io

履歴を削除する

これまでの履歴も必要がないので削除します。

git rm --cached [ファイル名]

参考文献

0
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
0
0