Error message
PS D: \ docker \ [project name]>git pull
remote: Counting objects: 142, done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 142 (delta 32), reused 113 (delta 16) eceiving objects: 78% (111/142)
Receiving objects: 100% (142/142), 35.34 KiB | 556.00 KiB/s, done.
Resolving deltas: 100% (32/32), completed with 19 local objects.
From https: // [git repository path]
   1912dbc..c60680a master->origin/master
error: unable to create file init.sh: Permission denied

When git pull is executed, the above error message is displayed.
What are the possible causes of errors?
What should I do to eliminate it again?

Thank you for teaching me.

  • If i am using tortoiseGit but there is a problem, init.sh does not display the green dot mark specific to tortoiseGit
  • I understand that you don't have access to init.sh
  • Resolve once the repository is cloned again
Supplemental information
  • Establishing a rails environment on docker
Version information
  • ruby ​​2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
  • Rails 5.1.5
  • Docker Community Edition Version 18.06.1-ce-win73 (19507)
  • Answer # 1

    If you do git pull while the docker container is running, it looks like the above. Execute docker-compose stop and then try to operate git. . .