相关疑难解决方法(0)

GitHub:权限被拒绝(publickey).致命:远程端意外挂断

我已按照以下说明上传项目.

全球设置:

 Download and install Git
  git config --global user.name "Your Name"
  git config --global user.email tirenga@gmail.com
  Add your public key


Next steps:

  mkdir tirengarfio
  cd tirengarfio
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:tirenga/tirenga.git
  git push origin master
Run Code Online (Sandbox Code Playgroud)

但我得到这个错误:

权限被拒绝(publickey).致命:远程端意外挂断

git github public-key

197
推荐指数
9
解决办法
31万
查看次数

为什么Jenkins在从git获取时失败,而命令行不是?

我所有的Jenkins构建都在失败git fetch.

它失败了 git fetch --tags --progress git@bitbucket.org:ethenwilson/whentoact.git

Started by user anonymous
Building in workspace /Users/ethen/.jenkins/workspace/Build NikNik
 > git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > git config remote.origin.url git@bitbucket.org:ethenwilson/whentoact.git
Fetching upstream changes from git@bitbucket.org:ethenwilson/whentoact.git
 > git --version
using GIT_SSH to set credentials NikNik BitBucket SSH Key
 > git fetch --tags --progress git@bitbucket.org:ethenwilson/whentoact.git +refs/heads/*:refs/remotes/origin/*
FATAL: Failed to fetch from git@bitbucket.org:ethenwilson/whentoact.git
hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:ethenwilson/whentoact.git
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
    at …
Run Code Online (Sandbox Code Playgroud)

git ssh bitbucket git-fetch jenkins

25
推荐指数
4
解决办法
4万
查看次数

tortoisegit =致命:远程端意外挂断,但不是git bash

这个问题有点奇怪,经过大约1周的搜索和使用bash,我以为我会问你们.

很简单,每当我尝试通过tortoisegit推送或拉动时,它会询问我登录详细信息,一旦我输入它我就会"致命:远程端意外挂断".我想也许我不是正确的用户所以我改变自己成为根:url = ssh:// root @ ...但仍然没有运气.

不知道它可能是什么,但也许其他人有同样的问题.

有线索吗?

[编辑] 通过tortoisegit在Windows上卸载,重新启动然后重新安装来解决这个问题.

git bash tortoisegit

5
推荐指数
1
解决办法
2922
查看次数

Git检查问题[致命:早期EOF]

我正在运行一个安装了Git(最新来自Ubuntu软件包管理器)的Ubuntu(9.10)服务器.通过SSH访问Git.在Windows机器上,我使用Cygwin来推/拉代码.

我可以将我的项目代码推送到服务器上,但是当我执行克隆或拉取时,它会返回[致命:早期EOF]错误,大约为75-80%.

经过进一步调查,看起来文本数据在拉/克隆时没有问题,但是当从Git中提取jar文件和图像时,将发生错误.

有任何建议/建议可以帮助解决这个问题吗?

提前致谢.

git binaryfiles ubuntu-9.10

4
推荐指数
1
解决办法
2万
查看次数