在 OVM Ubuntu 上运行 git,检查有效凭证时一切正常:
\n\ngit config user.name \nroland \nRun 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\nRun Code Online (Sandbox Code Playgroud)\n\n我收到错误消息:
\n\n fatal: could not open \xe2\x80\x98.git/COMMIT_EDITMSG\xe2\x80\x99: Permission denied\nRun Code Online (Sandbox Code Playgroud)\n\n当我运行 git log 时,我看到以前的提交已归因于
\n\n Author: root<root@mymodem.box>\nRun Code Online (Sandbox Code Playgroud)\n\n关于如何启用提交的作者身份等的任何线索?\n此问题出现在完全本地环境中。谢谢。
\ngit ×2