2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git cloneでfatal: could not create work tree dir 'xxxx': Permission denied

Last updated at Posted at 2021-11-18

結論

cloneする先のwindows側の書き込み権限のせいだった。cloneする先のディレクトリを変えれば良い (documents直下等ならOK)

githubへのアクセス権限と信じて疑わなかったから結構詰まった。

#その他の解決方法

#####githubプライベートリポジトリへのアクセスには複数方法がある。
######方法1 アクセストークンによる接続

shell
git clone https://{ユーザ名}:{アクセストークン}@github.com/foo/bar.git

アクセストークンの作成方法はこちらを参照

######方法2 SSHによる接続
こちらがわかりやすい

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?