GIT命名我的存储库 [英] GIT naming my repository

查看:131
本文介绍了GIT命名我的存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循本指南,它说运行 $ git clone --bare stef_project stef_project.git 。我得到 fatal:repository'stef_project'不存在。

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.

看起来我的回购没有名称。在.git文件夹中有一个描述文件,其中包含一个默认消息,我用 stef_project 替换,现在当我再次运行克隆命令,我仍然得到相同的错误信息。

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?

推荐答案

您目前的工作目录是?假设它被称为mydir,您可以移动上面的一个目录并克隆,如下所示:

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

这篇关于GIT命名我的存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆