mdai / ml-lessons

Intro to deep learning for medical imaging lesson, by MD.ai
Apache License 2.0
258 stars 135 forks source link

Permission denied for git clone from GCP #4

Closed ulfimlg closed 6 years ago

ulfimlg commented 6 years ago

Clone ml-lessons repo from github on instance After changing directory to /opt/deeplearning/workspace and running git clone https://github.com/mdai/ml-lessons.git I get this error:

fatal: could not create work tree dir 'ml-lessons': Permission denied

Any idea why this is happening?

tianx-dev commented 6 years ago

i dont think you have write permission in your current directory. where are you trying to do this? see https://stackoverflow.com/questions/16376035/fatal-could-not-create-work-tree-dir-kivy

ulfimlg commented 6 years ago
sudo chmod 777 DIR_NAME
cd DIR_NAME
git clone https://github.com/mdai/ml-lessons.git

Yes, it worked after the permissions were changed.