2017-06-29 80 views
1

我正尝试使用CLI将应用推送到Heroku。当我在终端输入命令git add .,我不断收到此错误:.config/git/ignore':权限被拒绝

/Users/me/.config/git/ignore': Permission denied 
'/Users/me/.config/git/attributes': Permission denied 

谁能帮助?

+0

与您的一样吗? https://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end –

+0

@Sahan号这个问题是关于远程服务器拒绝推动。这是关于本地文件权限。 –

+1

该属性文件的所有者,组和权限是什么? – jpmc26

回答

0

虽然你可能是文件的所有者,检查父文件夹.config,许可.config/gitas in here

,并检查是否在你推到Heroky会话具有HOME anbd XDG_CONFIG_HOME环境变量的权值。