使用git和MAMP进行本地开发的权限 [英] Permissions for local development with git and MAMP

查看:112
本文介绍了使用git和MAMP进行本地开发的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用干净帐户设置一台新计算机.我正在使用MAMP Pro的Mac(OSX 10.8.2)上进行本地开发,并且使用git进行版本控制.我遇到了权限问题...

I'm setting up a new machine on a clean account. I'm developing locally on a Mac (OSX 10.8.2) with MAMP Pro and I use git for version control. I'm having a permissions problem...

MAMP Pro允许您使用以下对话框设置对主机目录的权限:

MAMP Pro allows you to set permission to the host directory using the following dialog:

当我将所有者设置为我自己(ESL)并将组设置为管理员"时,git可以正常工作,但是本地计算机上的Wordpress更新无法正常运行(提示输入ftp凭据).

When I set the owner to myself (ESL) and the group to "Admin" git works happily, but Wordpress updates on my local machine aren't able to run normally (I get prompted for ftp credentials).

当我将所有者和组设置为"www"时,Wordpress会平稳更新,但是git会抛出权限被拒绝"错误,例如:

When I set the owner and group to "www", Wordpress updates smoothly, but git throws "Permission denied" errors such as:

ESL$ git checkout master
fatal: Unable to create '/Applications/MAMP/htdocs/streetofwalls/.git/index.lock': Permission denied

我被困住了,因为我需要Wordpress以及git正常运行.为什么我遇到这个问题和/或如何解决这个问题的任何想法?

I'm stuck because I need Wordpress to run normally as well as git. Any ideas why I'm having this problem and/or how to fix it?

推荐答案

允许所有人在此处书写.只是本地开发机器,对吧?

Allow everybody to write there. It’s just local dev machine, right?

这篇关于使用git和MAMP进行本地开发的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆