推送从KIE Workbench存储库克隆的git存储库

Dom*_*aja 5 git drools drools-guvnor kie kie-wb

我使用KIE Workbench(6.1.0.Beta3)来编辑我的规则.由于Workbench还没有支持某些功能(例如将规则移到其他包中),我想在KIE-WB之外做这些事情.

为此,我克隆了我的存储库

git clone git://localhost:9418/my-kie-repository
Run Code Online (Sandbox Code Playgroud)

哪个工作正常.我编辑一些文件,在本地提交,然后尝试git push.但是我得到了错误

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
Run Code Online (Sandbox Code Playgroud)

因为我几乎可以肯定它是第一个问题,关于凭证,我在.git/config文件中添加了行

[credential "git://localhost:9418"]
    username = admin
    password = admin
Run Code Online (Sandbox Code Playgroud)

不过,我得到了前面提到的错误.是的,KIE Workbench仍在运行,我也可以从那里获取/拉取没有问题.

有没有办法如何推回到KIE Workbench存储库?根据这条消息,一个"可能需要重新配置原点",但我不确定如何更改它.

有人知道如何正确设置吗?

小智 1

我发现ssh协议request可以处理该请求;

\n\n
 $ git clone ssh://adminsf1@10.101.81.72:8001/uf-playground\ncloning \'uf-playground\'...\nAuthenticated with partial success.\nPassword authentication\nPassword: \nremote: Counting objects: 967, done\nremote: Finding sources: 100% (967/967)\nremote: Getting sizes: 100% (459/459)\nremote: Total 967 (delta 385), reused 967 (delta 385)\nreceiveing objects: 100% (967/967), 154.58 KiB | 0 bytes/s, done.\ndela with delta : 100% (385/385), done.\ncomplete\xe3\x80\x82\n\n$ echo "heello" >> hello2\n$ git add hello2 \n$ git commit -i -m "add hello2 now" hello2 \n[master a78762f] add hello2 now\n 1 file changed, 1 insertion(+)\n create mode 100644 hello2\n$ git push\nAuthenticated with partial success.\nPassword authentication\nPassword: \nCounting objects: 5, done.\nCompressing objects: 100% (2/2), done.\nWriting objects: 100% (3/3), 271 bytes | 0 bytes/s, done.\nTotal 3 (delta 1), reused 0 (delta 0)\nremote: Resolving deltas: 100% (1/1)\nremote: Updating references: 100% (1/1)\nTo ssh://adminsf1@10.101.81.72:8001/uf-playground\n   273c880..a78762f  master -> master\n
Run Code Online (Sandbox Code Playgroud)\n\n

注意用户:adminsf1

\n\n

该用户是通过 jboss/bin 的 add_user.sh 添加的

\n\n

一些提示:\n1. 没有生成 ssh-key 和 stroing 到 Guvnor .security 目录工作:<,\ni 不明白 .security 目录的功能是什么,形成“org.uberfire.nio.git.ssh.cert.dir: 的位置将存储本地\n证书的目录 .security。默认值:工作目录”

\n\n

没有更多信息添加用户后排除一个名为 hostkey.ser 的文件:<

\n\n
    \n
  1. 我也无法使用 git 协议将代码推送到 guvnor git 服务器,\n但是我可以从 git 克隆
  2. \n
\n\n

这就是我不明白的地方

\n\n

祝你好运

\n