Git 在写入我正在 pull 的文件时给我一个 "Permission Denied"错误

标签 git windows-7 permissions

在我的 Windows 机器上,当我提取我的 repo 时,我得到:

error: unable to crate file <path to file> (Permission denied)

我认为问题可能是当我查看文件夹的属性时,复选框内有一个正方形,我将其清除,以便没有文件或文件夹是只读的。

在按确定并检查 Windows 是否应用了我的更改后,我再次看到了正方形!

如何让 Git 或 Windows 允许我获取我的提交?

最佳答案

运行 Git Bash 或您正在运行的控制台,使用 Run As Administrator

关于Git 在写入我正在 pull 的文件时给我一个 "Permission Denied"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9200556/

相关文章:

node.js - 'gyp' 失败,退出代码为 : 1 when trying to install zookeeper on window using npm

mysql - 如何锁定 PHPMyAdmin 中的表以使其无法修改?

hadoop - 当我设置 Hadoop 时,*底层* 文件系统需要哪些权限?

git - Mercurial - "future auditing"是什么?

git - 你如何给 git commit 一个名字?

git - Emacs git 插件 - egg

wpf - 能够检测这是否是用户首次登录 Windows 7

windows-7 - 在 Windows 7 中使用 Open MPI 和 CUDA

android - 如何授予xamarin相机权限