Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GIT naming my repository

Tags:

git

I'm following this guide where it says to run $ git clone --bare stef_project stef_project.git. I get fatal: repository 'stef_project' does not exist.

It seems my repo doesn't have a name. In the .git folder there is a DESCRIPTION file that contained a default message which I replaced with stef_project, now when I run the clone command again I still get the same error message.

How can I name or rename my repo?

like image 264
stef Avatar asked Mar 24 '26 18:03

stef


1 Answers

What's your current working directory? Suppose it's called "mydir", you can move one directory above and clone like this:

cd ..
git clone --bare mydir stef_project.git
like image 145
Milan Babuškov Avatar answered Mar 27 '26 10:03

Milan Babuškov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!