有时候在使用git add命令时候会出现如下问题:
如:git add SharedActivity.java 出现了如下问题
The following paths are ignored by one of your .gitignore files:
Use -f if you really want to add them.
fatal: no files added
遇到这种情况时候需要使用git add -f 命令强制添加这个文件:
如:git add -f SharedActivity.java
参考自:https://www.quora.com/How-do-I-do-this-The-following-paths-are-ignored-by-one-of-your-gitignore-files-node_modules-Use-f-if-you-really-want-to-add-them-fatal-no-files-added