相关疑难解决方法(0)

12
推荐指数
1
解决办法
1002
查看次数

无法在 Git 上提交 - 尽管我是公认的用户

在 OVM Ubuntu 上运行 git,检查有效凭证时一切正常:

\n\n
git config user.name \nroland \n
Run Code Online (Sandbox Code Playgroud)\n\n

但是当我尝试提交时

\n\n
 git commit \xe2\x80\x93m \xe2\x80\x9cadd an \xe2\x80\x98about\xe2\x80\x99 page\n
Run Code Online (Sandbox Code Playgroud)\n\n

我收到错误消息:

\n\n
 fatal: could not open \xe2\x80\x98.git/COMMIT_EDITMSG\xe2\x80\x99: Permission denied\n
Run Code Online (Sandbox Code Playgroud)\n\n

当我运行 git log 时,我看到以前的提交已归因于

\n\n
 Author: root<root@mymodem.box>\n
Run Code Online (Sandbox Code Playgroud)\n\n

关于如何启用提交的作者身份等的任何线索?\n此问题出现在完全本地环境中。谢谢。

\n

git

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

标签 统计

git ×2