git 使用 遇到的问题

一、服务器初始化 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 '' write error: Broken pipe
error: remote unpack failed: index-pack abnormal exit
error: failed to push some refs to '[email protected]:/home/git/fx_forum/fx_forum.git'
      问题描述: 推送的用户不具有该git文件夹的权限。
      解决方案: 用你现有的用户创建git repo并使用相同的用户来推送。
 

你可能感兴趣的:(Linux)