Tyler,

If you type pwd, you'll probably find that you're off in System32 or somewhere 
you don't have write permissions to. This can happen sometimes on Windows when 
you first run git-bash for reasons I don't quite know how to explain, but I 
have seen it before.

Typing cd ~ or just cd by itself usually puts you in your home directory.

So I think you probably either:
1. wound up in another directory at run-time of git bash
or
2. navigated to a place like / perhaps that you didn't have write permissions 
to.

When teaching, usually typing cd <enter> will get all learners to their home 
directory before you launch into mkdir...git init etc.

Regards,
---
Jonah Duckles
Software Carpentry, Executive Director
http://software-carpentry.org

From: Tyler Richards <[email protected]>
Reply: Tyler Richards <[email protected]>
Date: June 2, 2016 at 12:52:23 PM
To: [email protected] <[email protected]>
Subject:  [Discuss] Fwd: Windows permission problems  

Hey all,

I'm working on the git tutorial, and when I try to create directories using 
$ mkdir planets
but it says 'cannot create directory 'planets': permission denied

then I tried 
$ sudo mkdir planets
and the same issue came up. Any idea how to fix? I found a temporary solution 
using 
$ mkdir ~/planets 
but would like to know if anyone knows a more permanent solution.


best,

--
Tyler Richards
[email protected]  | Linkedin | Twitter |
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss

Reply via email to