1

I'm using LiClipse which is based on Eclipse. With EGit, I pushed most of the files and directories into a GitHub repository.

However, there is one file that I can not find a way to check in to the repository: .project, the XML file.

How do I check in this file? Even manually?

random
  • 9,774
  • 10
  • 66
  • 83
Xing Hu
  • 128
  • 10
  • 1
    Do you have a .gitignore at the root of your project ? can you post the content of this file? you may need to remove a line from that file to push .project into github. However, it is not really recommanded to check in files related to your IDE in your source code. – benzonico Nov 01 '13 at 08:59
  • Thank you guys! By commenting .project in .gitignore, I can checkin it into GitHub now. Thank you guys very much! – Xing Hu Nov 01 '13 at 16:27

1 Answers1

0

Maybe you can (from a command-line git session) add a .project, but you can't from Eclispe, because Eclipse filters by default the "resource files", ie the '.*' files.

If that is the case, see "How can I get Eclipse to show .* files?".

Then, if that file isn't ignored by git, you can add it.
Or you can force the add (at least in command line: git add --force)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250