无法使用intellij提交更改 [英] Cannot commit changes with intellij

查看:538
本文介绍了无法使用intellij提交更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Intellij中集成了git。但是,最近我提交任何文件时出现以下错误。事件日志显示以下错误:

I have integrated git in Intellij. However, recently I am getting following error when I commit any file. The event log shows following error:

Commit failed with error
0 files committed, 1 file failed to commit: test
cannot spawn .git/hooks/commit-msg: No such file or directory

但是,使用git提交工作完美。您能否告诉我如何解决这个Intellij错误以便我可以使用Intellij?

However, commit using git is working perfectly. Can u please tell me how can I solve this Intellij error so that I can commit using Intellij?

推荐答案

我有这个当推送到我是受邀团队成员的组织帐户,而不是我的所有者。

I've had this when pushing to an organization account for which I am an invited team member, but not an owner of.

我与JetBrains的人进行了多次电子邮件交流。我删除并重新添加了repo,重新初始化了我所有的github设置等。最终,我在github URL中内联了我的凭据,这仍然困扰着我,但确实有效,例如:

I went through a number of email exchanges with the folks at JetBrains. I deleted and re-added the repo, re-initialized all my github settings, etc. Ultimately, I had inline my credentials in the github URL, which still bothers me, but did work, eg:

https://user:password@github.com/company/project.git/

如果有人设法使用常规方法(存储的凭证或身份验证令牌)来提供这种方法,我很想知道,但如果失败了,我的URL解决方案以上为我工作。

If someone managed to come up with a way to make this work using the normal methods (stored credentials or auth token) I would love to know, but failing that, my URL solution above worked for me.

这篇关于无法使用intellij提交更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆