git 使用 遇到的问题
一、服务器初始化 git 仓库后,本地推送显示错误remote: fatal: Unable to create temporary file '/home/git/fx_forum/fx_forum.git/./objects/pack/tmp_pack_XXXXXX': Permission deniedfatal: sha1 file '' write error: Broken pipe
文章共128字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
一、服务器初始化 git 仓库后,本地推送显示错误
解决方案: 用你现有的用户创建git repo并使用相同的用户来推送。
remote: fatal: Unable to create temporary file '/home/git/fx_forum/fx_forum.git/./objects/pack/tmp_pack_XXXXXX': Permission denied
fatal: sha1 file '<stdout>' write error: Broken pipe
error: remote unpack failed: index-pack abnormal exit
error: failed to push some refs to 'git@139.199.168.69:/home/git/fx_forum/fx_forum.git'
问题描述: 推送的用户不具有该git文件夹的权限。
解决方案: 用你现有的用户创建git repo并使用相同的用户来推送。
更多推荐
已为社区贡献2条内容
所有评论(0)