Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@Aqua_ix

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

環境

  • 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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?