Git Bash

Hello All,
I am Pauline and am currently enrolled in the HTML/CSS course. Going along swimmingly lol until I got to the Git section. Actually that was going along well but today I had to simply create a new directory called practice (mkdir git_practice) and git Bash is sending back a message that basically says I do not have permission: “mkdir: cannot create directory ‘git_practice’: Permission denied”.

I cannot figure out how to get past this point or why I am being denied permission to create this new directory. I was able to create a new directory the other day, same laptop, same login, etc.

Thanks in advance!!
Pauline

1 Like

is this exercise related?

The obvious things that come to mind are checking as what user you are logged in (whoami), see the permissions in the current directory (ls -l) and parent directory ls -l .., to see which users the directories belong to

2 Likes

Yes, this is exercise related.

$ whoami
Owner

Owner@Owner-PC MINGW64 /

I tried ls -l and got the following:
total 3060
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:24 bin/
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:23 cmd/
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:24 dev/
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:24 etc/
-rwxr-xr-x 1 Owner 197121 147608 Oct 30 11:19 git-bash.exe*
-rwxr-xr-x 1 Owner 197121 146584 Oct 30 11:19 git-cmd.exe*
-rw-r–r-- 1 Owner 197121 18765 Aug 31 13:29 LICENSE.txt
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:23 mingw64/
dr-xr-xr-x 9 Owner 197121 0 Nov 10 13:36 proc/
-rw-r–r-- 1 Owner 197121 115102 Oct 30 11:33 ReleaseNotes.html
drwxr-xr-x 1 Owner 197121 0 Nov 10 13:12 tmp/
-rw-r–r-- 1 Owner 197121 1073252 Nov 8 12:24 unins000.dat
-rwxr-xr-x 1 Owner 197121 1289368 Nov 8 12:21 unins000.exe*
-rw-r–r-- 1 Owner 197121 22811 Nov 8 12:24 unins000.msg
drwxr-xr-x 1 Owner 197121 0 Nov 8 12:24 usr/

Owner@Owner-PC MINGW64 /

One more piece of data: when I type ls - the first line that comes back is: App/Data/ so I do not think am in the right place.

1 Like

if its exercise related, please share exercise url

2 Likes

https://www.codecademy.com/programs/3c3ce57379138958530c3d7660c66e77/items/6751c087006ec49fecbc2685310a8a79

This is where I am stuck.

Thanks

is this part of pro-intensive course?

Is this:
Build Websites from Scratch -> week 2 -> lesson git workflow?

The forum is generally not used for this kind of question, given you should be able to contact a pro-advisor?

the commands you are running, where are you running them? in the lesson on your local machine?

it seems your local machine, since it seem cygwin is involved. Such details are very valuable to include into your question.

1 Like

Hello,
Yes, this is a part of the pro-intensive course. I could not get a hold of a pro-advisor which is why I had to resort to using the forum. If you can point me to the pro-advisor, I will anxiously ask them for assistance as I am lost in this GitHub section of the course and cannot continue until I can establish a connection between my local project work and a repository on GitHub. Can I have an email address or phone number, etc where I can reach a pro-advisor?
Thank you,Pauline

stetim94 Codecademy Moderator
November 11 |

is this part of pro-intensive course?Is this:
Build Websites from Scratch → week 2 → lesson git workflow?The forum is generally not used for this kind of question, given you should be able to contact a pro-advisor?the commands you are running, where are you running them? in the lesson on your local machine?it seems your local machine, since it seem cygwin is involved. Such details are very valuable to include into your question. Visit Topic or reply to this email to respond.
In Reply To

pauline2017
November 11 |

https://www.codecademy.com/programs/3c3ce57379138958530c3d7660c66e77/items/6751c087006ec49fecbc2685310a8a79 This is where I am stuck. Thanks Visit Topic or reply to this email to respond. To unsubscribe from these emails, click here.

in any lesson you should have this button:

Screenshot_2017-11-11_22-33-30

allowing to chat with an advisor

To save the advisor time, clearly indicate that the struggle is in making a directory on your local machine with cygwin.

I personally don’t use cygwin, given how much this course focus on linux, i preferred to have a full linux system. Have you considered the same? If you have windows 10, there is also a linux subsystem which i think is a better alternative then cygwin i think. Otherwise you can always consider virtualbox

have you googled on what create problems with creating directory in cygwin

1 Like

Make sure you are in your git directory.

you mean the project directory? Within a project you general have a .git directory, but you rarely come there.

I ran into the same problem. What worked for me was to simply run Git Bash as Admin.

Just because running something as admin solves your problem, doesn’t mean its the best approach. Consider the permissions you need and the best way to get these permissions.