Stupid Eclipse Git Import Problem

At current stage, all stuffs are saved at cloud end. To follow that, I decide to put my new programming projects online.

Today, I created a new one at Github and imported it into Eclipse. After adding some files, I tried to commit them. Hoops, there are no options in the Team menu excepting “Apply a patch” and “share project”. Actually later on, I came to notice that no branch description exists at the right side of project title too. Something unexpected happened but as a casual git user, I have no much clues.

Only after I finally found the problem, I realized that the initial observations are directly caused by that. But due to lacking of experience, it costed me several hours searching online for solutions. All the tutorials and answers I found, no matter concise or in details, failed to cover the real reason in my case.

Actually I was able to import projects from Github without problem. Then what failed me this time? It’s not something in Eclipse that breaks stuff as I initially suspected. It turned out that in one of the steps during importing, I chose to create an new project using Eclipse’s wizard (I used that before) since it’s still an empty project at Github. When prompted for project name, I typed in a name similar to the one in Github but in uppercase. I never thought this could be a problem because by previous experience, it seems the local project name can be a different one. However, this time, the new project created simply overwrote the same folder where the git repository is saved. As a result, it’s not considered to be shared. And any attempting to re-share it just lead to various problems.

After using the same title for project name, all become normal and problem is gone.