java - 使用 ssh NBGit 到远程主机

标签 java git netbeans-6.9 netbeans-plugins

我正在努力让它发挥作用:

使用 NBGit 从 ssh 服务器克隆 git 项目。我安装了 NBGit,在本地运行良好,但是当给出连接参数时,我不确定正确的 URL 是什么。

或者目前不支持?

NBGit 0.4 适用于 Win7 上的 NB 6.9.1

最佳答案

网址应该是:

git@myserver:/myreppo

enter image description here

但正如issue 91中报道的那样,这可能效果不太好。
我将探索 issue 56 中提出的解决方法:

在 ~/.ssh 目录中,创建一个“config”文件

在文本编辑器中打开 ~/.ssh/config 并输入以下内容:

Host AHostName -- this will be the name you will be calling in nbgit
User gituser
Hostname SSH IP address --eg 192.68.24.1 --my git server
Port 1234 -- use this if you need custom ports
IdentityFile "path to your private ssh key"

从那里,网址可以是:

AHostName:myrepo

关于java - 使用 ssh NBGit 到远程主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5357232/

相关文章:

java - ArrayAdapter<String> 构造函数未定义

java - 简单逻辑的计算器问题

git - 如何按 rc-X.Y.Z.W 形式的版本字符串顺序对 git 标签进行排序?

Git fetch 说 "success"但没有下载任何东西

java - NetBeans GUI 应用程序在我尝试运行时一直卡住

netbeans - 如何在 NetBeans PHP 的 TestCase 中只运行一个测试?

java - NoClassDefFoundError 在 Linux 上运行 .jar

java - Spring MVC Controller 问题 : No mapping found for HTTP request with URI

git - Pull Request 是 Git 概念吗?

java - 从 NetBeans 环境中单击 Applet 上的运行文件时,如何将一些 Jar 插件添加到 Netbeans 中的运行时类路径?