我有一种情况,我修改的文件没有显示为修改后的文件。
我还能提交那个文件吗?
我可以将列为未更改文件的文件添加到已更改文件吗?谢谢!
更新:当我尝试添加文件时,终端给出了这样的错误:
The following paths are ignored by one of your .gitignore files:
folderpath/filename.java
Use -f if you really want to add them.
fatal: no files added
但是当我打开我的.gitignore文件时:
bin
gen
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated GUI files
*R.java
# Mac OS file
.DS_Store
和信息/排除
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
我非常确定我的文件夹路径及其文件名不包含在 .gitignore 和排除文件中