[英]How to connect to a remote Git repository with IntelliJ
Having issues trying to get my IntelliJ-Idea to connect to a remote server containing the git repos. 尝试让我的IntelliJ-Idea连接到包含git repos的远程服务器时遇到问题。 My computer is running OpenSuse 15.1 with Ultimate 2019.1
我的计算机运行的是带有Ultimate 2019.1的OpenSuse 15.1
The following is what I get when logged into the remote server: 以下是登录到远程服务器时得到的信息:
mschumacher@omares-dev3 ~/src/xxx $ git remote show origin
Password:
* remote origin
Fetch URL: git@omares-git.xxx.com:/var/git/Repo.git
Push URL: git@omares-git.xxx.com:/var/git/Repo.git
HEAD branch: master
I've done many attempts with no luck in getting it connected. 我已经做了很多尝试,但都没有运气。 I've created a new project and ?enabled?
我创建了一个新项目并启用了? VCS with Git.
使用Git的VCS。 I have put in "omares-git.xxx.com" - in addition, I found a link for a web view of the repositories that are available.
我输入了“ omares-git.xxx.com”-此外,我找到了可用存储库的Web视图链接。 The path for the url is 'omares-git.xxx.com/git' - but under that has a "projects".
网址的路径为“ omares-git.xxx.com/git”-但该路径下有一个“项目”。
I've located the actual location on the server... 我已经在服务器上找到了实际位置...
mschumacher@omares-repos:/var/git> hostname -i
10.0.33.58
mschumacher@omares-repos:/var/git> ls
git-notifier-config.yml Repo.git
Please note I've changed a few things of the output to keep things safe. 请注意,我已经更改了输出的一些内容,以确保安全。
Well, newbie me finally figured it out. 好吧,新手我终于明白了。 After enabling the project to GIT, I was able to get to the VCS -> Git -> Remotes, added one using the full "Push" url above.
将项目启用为GIT后,我能够进入VCS-> Git->远程,使用上面的完整“ Push” URL添加了一个。 Now I'm further with the way I want to use IntelliJ
现在,我对使用IntelliJ的方式有了进一步的了解
通过sftp
同步代码,将其保存在intellij idea Ultimate 文档中后,您可以立即部署更改
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.