git clone 致命的 : cannot create work tree dir permission denied

标签 git bash github intellij-idea

所以我试图从 git 克隆一个存储库,到我知道我有写访问权限的文件夹中。

我正在尝试使用 IntelliJ 的内置 VCS 功能和来自 git-scm.com 的 git bash 程序克隆它,它们都返回以下错误:

fatal: could not create work tree dir '<repo name>' : 
Permission denied

我究竟做错了什么?

最佳答案

使用须藤

sudo git clone <url>

关于git clone 致命的 : cannot create work tree dir permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36728469/

相关文章:

c - 在线C项目锻炼?

git - 在 Visual Studio 2013 中使用本地 Git 和(远程)TFS

linux - 当检测到特定输出时自动取消二进制执行

git - `git -S -m commit` 请求密码失败 — 从 GPG mac 移动到 GPG shell 后签名

git - Visual Studio 解决方案与 Git 项目和 TFS 项目混合

git - Heroku Git - fatal error : The remote end hung up unexpectedly

git - 作为掉电的一部分,密码身份验证被暂时禁用。请改用个人访问 token

ios - 如何在 Xcode 中导入 Firebase

bash - 在 bash 命令行中将十六进制字符串转换为 ascii

git - 从本地存储库推送到 GitHub 托管的远程