我在远程服务器ABC3
上名为public_html/ABC3
的目录中设置了一个git存储库。
git init
我想将存储库克隆到本地计算机。这就是我的工作:进入我想要工作的目录,说Desktop/GitFun
,然后我尝试用以下命令克隆
git clone myusername@myserver.com:/public_html/ABC3.git
输入密码后,我收到错误
fatal: '/public_html/ABC3.git' does not appear to be a git repository
fatal: Could not read from remote repository.
我做得对吗? ABC3是目录的名称,对吧?
可能很重要:我正在使用Bluehost共享服务器。在他们的网站上,他们提到在VPS或私人服务器上安装GIT,但在共享服务器上没有任何关于它的信息。当我git --version
时,我得到了积极的回应,1.7.11.3。建议?
答案 0 :(得分:1)
考虑到你创建了一个非裸仓库,网址应该是:
git clone myusername@myserver.com:/public_html/ABC3
我建议创建一个 bare repo (作为in this video):
cd /public_html
git init --bare ABC3
然后网址确实是:
git clone myusername@myserver.com:/public_html/ABC3.git
答案 1 :(得分:0)
这个答案可能对其git存储库不在value hello is not a member of core.Test
如果您在这里创建了裸露的回购:
"How to create a macro project to link to an existing project:
Create a scala project named for example ProjectMacros, put a file named for example Macros.scala containing macros in it. This project should compile without problems, because there are only macros.
Right-click on the existing scala project, then "preferences". The preferences window opens.
In the Java Build Path section:
Under the tab Projects, add ProjectMacros.
Under the tab Libraries, click Add Class Folder, and select the ProjectMacros/bin directory.
In the Project References section, check ProjectMacros
Now, after adding in the existing project an import like import Macros._ you can use the macros functions and annotations."
您可以尝试(请注意使用public_html
代替cd ~
mkdirs git/myapp.git
cd git/myapp.git
git init --bare
)
~
的建议