简体   繁体   English

权限错误设置 Git URL with Capistrano

[英]Permission Error Setting Git URL with Capistrano

I'm trying to debug deploying with a new user.我正在尝试调试新用户的部署。 The setup currently works deploying as me, but not for bob.该设置当前可以像我一样部署,但不适用于鲍勃。

error: could not lock config file config: Permission denied
INFO [097c7d60] Running /us/bin/env git remote set-url origin git@bitbucket.org:me/thing.git on 1.2.3.4

How can I fix this?我怎样才能解决这个问题?
Is it that I need to change permissions on some file?是我需要更改某些文件的权限吗? Which one?哪一个? where is the config file it is talking about?它正在谈论的配置文件在哪里?

Or is it that bob needs more permissions?还是 bob 需要更多权限?

It could happen when the user home directory is not writable by the user.当用户主目录不可写时,可能会发生这种情况。

cd $HOME
ls -alrth

Check the permission for ' .检查 ' 的权限. ' '

git config –global needs to create a lock file ( ~/.gitconfig.lock ). git config –global需要创建一个锁文件( ~/.gitconfig.lock )。
As seen here , check also the ownership of the current ~/.gitconfig , if it already exists.如此处所示,还要检查当前~/.gitconfig的所有权(如果它已经存在)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM