Why i can't clone repositories from git bash ?

No description
17 Replies
Jochem
Jochem•2y ago
you don't have permission to write in the folder you're in it looks like you're trying to write to the root folder, which is probably not what you want?
samidev
samidevOP•2y ago
actually im trying to clone repository from github
Jochem
Jochem•2y ago
it's a message from your OS talking about the local file system you're trying to write to I think modern windows no longer allows unelevated accounts to create folders in the root folder on the system drive, and I'm not entirely sure / is a real folder in git bash you'll want to navigate somewhere sensible and try again there
samidev
samidevOP•2y ago
ok got it first i had to navigate where to add it (C: , D: etcc) and then use git clone
Jochem
Jochem•2y ago
exactly yeah
samidev
samidevOP•2y ago
thanks man
samidev
samidevOP•2y ago
No description
Jochem
Jochem•2y ago
I'd not recommend putting all your projects straight under C, but if that's what works for you that's fine too
samidev
samidevOP•2y ago
no i actuallly dont want to put my projcets straight under C: but idk how to navigate them on Desktop cuz i have folder where i have mostly all the projects there but idk how to navigate there
Jochem
Jochem•2y ago
cd /c/Users/SAMI/Desktop should put you there the bit after MINGW64 is your current path, and that's where your desktop lives you can also just cut and paste the folder git created in C: using windows explorer if that's easier
samidev
samidevOP•2y ago
i dont think so well it does 🤣
samidev
samidevOP•2y ago
No description
Jochem
Jochem•2y ago
it'll say ~/Desktop, but ~ is short for "home" in linux/bash and that's /c/Users/SAMI in your case
samidev
samidevOP•2y ago
well ye it is is more easier and faster thank you a lot man
Jochem
Jochem•2y ago
happy to help!
samidev
samidevOP•2y ago
have a nice day,week,month,year,life ā¤ļø
Jochem
Jochem•2y ago
you too šŸ™‚

Did you find this page helpful?