如果bin目录和gen目录下的文件被加到版本控制器了,那么需要先移出版本控制,然后加入到ignore中,具体步骤如下:
- 将bin从ignore中移除
- 将bin目录下的文件从版本控制中移除 git rm -f -r bin
- 提交
- 将bin加入到ignore中
参考:http://stackoverflow.com/questions/14046341/how-to-remove-bin-from-egit-versioning-after-accidentally-including-it-gitign