从EGit创建新的远程存储库 [英] Creating a new remote repository from EGit

查看:63
本文介绍了从EGit创建新的远程存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过git(EGit)共享一个Eclipse项目。

I want to share an Eclipse project over git (EGit).

我成功地为该项目创建了本地存储库。我了解,要添加远程存储库,它必须已经存在于远程计算机上。我成功添加了一个现有的远程裸存储库。

I successfully created a local repository for the project. I understand, that to add a remote repository, it must already exist on a remote machine. I succeeded adding an existing remote bare repository.

是否可以使用EGit自动创建远程存储库(如果尚不存在)?最终,Eclipse使用了与我手动创建远程存储库相同的SSH连接来连接到远程服务器。

Is there a way to automatically create a remote repository with EGit if it does not exist yet? In the end of the day, Eclipse uses the same SSH connection to connect to a remote server as I use to manually create a remote repository.

还是我丢失了某些东西?

Or am I missing something?

我正在使用私有NAS作为远程服务器,并对它具有完全控制权。

I am using a private NAS as a remote server and have full control over it.

感谢
Leon

Thanks Leon

推荐答案


是否可以使用EGit自动创建远程存储库还不存在?

Is there a way to automatically create a remote repository with EGit if it does not exist yet?

我不知道。 EGit将使用ssh或https来连接到远程服务器并在其中传递git命令。

Not that I know of. EGit will use ssh or https in order to connect to the remote server and pass the git command there.

但这不会在该服务器上创建存储库如果您要git push到您自己的计算机(也可以完全控制它的本地计算机)中的其他文件夹。

您将获得:

But that won't create the repo on said server anymore than it would if you were to git push to a different folder within your own computer (local computer which you have full control over it as well).
You would get a:

 fatal: 'path\to\repo' does not appear to be a git repository
 fatal: Could not read from remote repository.

这篇关于从EGit创建新的远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆