一、服务器初始化 git 仓库后,本地推送显示错误
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并使用相同的用户来推送。
 
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐