English 中文(简体)
git 克隆致命:不能制造被拒的工作树
原标题:git clone fatal: cannot create work tree dir permission denied

这样一来,我就试图把一个存放处从箱子上打成一只知道我有书写的手。

I m 试图用在VCS能力的英特尔利J 和从git-scm.com 建造的吉特巴什方案来掩饰它。

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

我做了什么错误?

问题回答

吸毒

sudo git clone <url>

错误很简单。 您没有获得该名录的许可。

您可以做几件事,但最简单的事情是尝试和打上存放人代码

# go to any other directory where you have the permissions to write to
cd <some path>

# Check to see if you have permissions:
mkdir dummy

# Now once you have verified that you have write permissions -
# clone the project from the command line
git clone <url>

一旦您对该项目做了改动,该项目将在英特尔利耶斯开放。

十分清楚的是,你没有获得有关名录的许可。 因此,你要么选择Run as Administration ,如图所示,做克隆或简单操作应用:此处的“形象说明”/<a

之后,您可使用git Clone

“entergraph

谢谢。

在你检查了目录许可(确保你能读写)之后,将采取以下步骤:

cd ~/
mkdir code
cd code
git clone https://github.com/repo-name

第一场开放式的座右铭是座右铭,然后向座右铭转移。 衣着的类型。





相关问题
Parse players currently in lobby

I m attempting to write a bash script to parse out the following log file and give me a list of CURRENT players in the room (so ignoring players that left, but including players that may have rejoined)...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Bash usage of vi or emacs

From a programming standpoint, when you set the bash shell to use vi or emacs via set -o vi or set -o emacs What is actually going on here? I ve been reading a book where it claims the bash shell ...

Dynamically building a command in bash

I am construcing a command in bash dynamically. This works fine: COMMAND="java myclass" ${COMMAND} Now I want to dynamically construct a command that redirectes the output: LOG=">> myfile.log ...

Perform OR on two hash outputs of sha1sum

I want perform sha1sum file1 and sha1sum file2 and perform bitwise OR operation with them using bash. Output should be printable i.e 53a23bc2e24d039 ... (160 bit) How can I do this? I know echo $(( ...

Set screen-title from shellscript

Is it possible to set the Screen Title using a shell script? I thought about something like sending the key commands ctrl+A shift-A Name enter I searched for about an hour on how to emulate ...

热门标签