Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do not ignore files in git sourcetree

I am downloading an eclipse project from source tree. The .project and .classpath files are not checked in. I want these checked in to do a successful import. I have no gitignore file. Can anyone shed some light as to why these files aren't coming across?

I also looked on the source machine that checked these files and the files are there. In the sourcetree version on that machine it doesn't show anymore files to be checked in.

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

This seems like this isn't the case either.

Thanks!

like image 945
Atma Avatar asked Dec 16 '22 16:12

Atma


1 Answers

Either your files have not been committed to the repository, as @adam-dymitruk told you, or you are ignoring them. Run this command:

$ git config --get core.excludesfile

And have a look at the file you get. You might have some patterns there which exclude your IDE files. I know that PHPStorm asks you at certain point to exclude theirs files globally. It might be that somebody (or eclipse) did the same in your source machine.

like image 189
aalbagarcia Avatar answered Dec 27 '22 17:12

aalbagarcia