Atm*_*tma 4 git version-control gitignore atlassian-sourcetree
我正在从源代码树下载一个eclipse项目.未签入.project和.classpath文件.我希望这些文件已成功导入.我没有gitignore文件.任何人都可以解释为什么这些文件没有出现?
我还查看了检查这些文件的源机器,文件就在那里.在该计算机上的sourcetree版本中,它不再显示要检入的文件.
My exlude file looks like this:
# 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]
# *~
.DS_Store
Run Code Online (Sandbox Code Playgroud)
这似乎不是这种情况.
谢谢!
您的文件尚未提交到存储库,正如@adam-dymitruk告诉您的那样,或者您忽略了它们.运行此命令:
$ git config --get core.excludesfile
看看你得到的文件.您可能在那里有一些排除IDE文件的模式.我知道PHPStorm会在某些时候要求您在全球范围内排除他们的文件.可能是某人(或eclipse)在你的源机器中做了同样的事情.
除了repo-local .gitignore文件之外,还可能会.git/info/exclude在repo 中的文件中指定进一步忽略选项,或者在全局级别使用config.您可能必须在发件人的计算机上检查这些内容,因为这是文件所在的位置,并且不会签入.