1
0

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.

Windows上のDockerコンテナ内でGitコマンドを実行しようとすると「Operation not permitted」というエラーが出るときの対応

Last updated at Posted at 2020-03-31

環境

  • Windows10 Pro 64bit
  • VSCode 1.43.2
  • Docker for Desktop 2.2.0.4
  • VSCode Remote-Containers使用

エラー内容

bash-5.0# git status
fatal: failed to read object xxxxxxxxx: Operation not permitted

対処方法

エクスプローラーで該当プロジェクトの.gitフォルダのプロパティを開き、
Read-only (読み取り専用)のチェックを外すと問題なくGitコマンドが実行できるようになります。

image.png

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?