バージョン管理する必要のないファイル(ex. バイナリファイル等)を既にGitの管理下にしてしまっている時、単純にgitignoreを書いただけではファイル/ディレクトリをGitの管理下から外すことができない。
実現方法は、
1. .gitinogreに bin/
や *.class
等無視する条件を書く
2. rm [-r] ファイル[ディクレクトリ]
で消す
3. git rm [-r] ファイル[ディクレクトリ]
でgitの管理下から外す
4. git add
git commit
する。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
78