簡體   English   中英

GIT 命名我的存儲庫

[英]GIT naming my repository

我正在按照本指南的說明運行$ git clone --bare stef_project stef_project.git 我遇到fatal: repository 'stef_project' does not exist.

看來我的回購沒有名字。 在 .git 文件夾中有一個DESCRIPTION文件,其中包含我用stef_project替換的默認消息,現在當我再次運行clone命令時,我仍然收到相同的錯誤消息。

如何命名或重命名我的存儲庫?

你當前的工作目錄是什么? 假設它叫做“mydir”,你可以移動一個目錄到上面,像這樣克隆:

cd ..
git clone --bare mydir stef_project.git

就我而言,我發現這很有效:

D:\AEMS\AEMS Website>git clone --bare "AEMS Website" AEMS_Website.git
fatal: repository 'AEMS Website' does not exist

D:\AEMS\AEMS Website>git clone --bare . AEMS_Website.git
Cloning into bare repository 'AEMS_Website.git'...
done.

看起來文件夾名稱中的嵌入空格會導致使用“。”出現問題。 避免。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM