简体   繁体   English

无法使用bitbucket和Github…Java克隆存储库

[英]Cannot clone repository with bitbucket and Github…Java

我正在使用eclipse Luna,当我使用“ git clone url”时,它会从存储库中获取文件和所有文件,但是,当我导入项目时,它不会说“ master”,因此我无法拉或任何相关的:(。怎么了?

If, when you import the project, you select "copy into the workspace", then you will get a copy of the sources from the git repo you just cloned. 如果在导入项目时选择“复制到工作区”,那么您将从刚刚克隆的git repo中获得源的副本。
That means those files aren't in a Git repo anymore (they are in your Eclipse workspace). 这意味着这些文件不再位于Git存储库中(它们位于Eclipse工作区中)。

But if you import the project without selecting that option, the the files remains in the Git repo, and the Git options should be present. 但是,如果您在选择该选项的情况下导入项目,则文件将保留在Git存储库中,并且应该存在Git选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM