LoginSignup
7
8

More than 5 years have passed since last update.

既にGit管理下のファイルを管理下から外す方法

Last updated at Posted at 2012-09-06

バージョン管理する必要のないファイル(ex. バイナリファイル等)を既にGitの管理下にしてしまっている時、単純にgitignoreを書いただけではファイル/ディレクトリをGitの管理下から外すことができない。
実現方法は、
1. .gitinogreに bin/*.class 等無視する条件を書く
2. rm [-r] ファイル[ディクレクトリ] で消す
3. git rm [-r] ファイル[ディクレクトリ] でgitの管理下から外す
4. git add git commit する。

7
8
1

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