用git-cola失败的git push

时间:2014-05-31 03:20:49

标签: git github

一周前,当我使用git-cola推送时,我开始收到以下错误...几年前我发现了一些类似问题,但它根本没有帮助。

"git push" returned exit status 128

Have you rebased/pulled lately?

Already up-to-date.

Pushing to https://github.com/slacktracer/lokapala.git
error: cannot run None: No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address

当我推动终端时它工作得很好,所以也许这主要是关于git-cola的问题。无论如何,只是想知道是否有人可以提供帮助。我现在迷路了......

2 个答案:

答案 0 :(得分:1)

cannot run None: No such file or directory

这意味着用于提交消息的编辑器未正确设置 检查git config core.editor

的值
fatal: could not read Username for 'https://github.com': No such device or address

检查in this answer,如果您没有使用msysgit 1.8.5(在Windows上):更新版本没有此错误。

查看您的配置是否确实声明了user.nameuser.email

如果https访问失败,请尝试switching to ssh

但是对于https,您还可以创建OAut token

git config remote.origin.url https://{token}@github.com/username/project.git
git config remote.origin.url https://{token}@github.com/slacktracer/lokapala.git
# or
git remote set-url origin https://{token}@github.com/slacktracer/lokapala.git

OP slacktracer确认in the comments该问题在lunbuntu上的git-cola上似乎有限。

  • 使用git-gui可能是一种解决方法。
  • 从命令行键入git push允许在任何GUI中向后切换。

issue 179可以提供帮助,同时启动git cola

GIT_COLA_TRACE=1 git cola

答案 1 :(得分:0)

我有同样的问题,只是清除配置文件,对我来说只是重新安装工作。 ' - '

 # apt-get purge git-cola 

编辑:事实上,安装git-gui真的为我解决了。

相关问题