git 警告:您似乎在 TortoiseGit 中克隆了空存储库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8130894/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 12:17:18  来源:igfitidea点击:

Warning: You appear to have cloned empty repository in TortoiseGit

gittortoisegit

提问by Jaggu

I am given a http git repository url along with username and password. I installed git and tried to clone the repository using Tortoisegit but somehow it is not working. These are the screenshots:

我得到了一个 http git 存储库 url 以及用户名和密码。我安装了 git 并尝试使用 Tortoisegit 克隆存储库,但不知何故它不起作用。这些是屏幕截图:

enter image description here

在此处输入图片说明

After I hit OK i am asked for username and password. I entered that and then I get this screenshots:

在我点击确定后,我被要求输入用户名和密码。我输入了那个,然后我得到了这个截图:

enter image description here

在此处输入图片说明

I am new to git and never used git before. I am totally clueless why is this happening. Can anybody help me out? At the end I get success does that mean the server repository itself is empty or am I missing something?

我是 git 的新手,以前从未使用过 git。我完全不知道为什么会发生这种情况。有人可以帮我吗?最后我成功了,这是否意味着服务器存储库本身是空的还是我遗漏了什么?

采纳答案by Russell

This is a warning that no commits have been made to the repository yet. Are you sure this is the repository you intended to clone?

这是一个警告,表示尚未对存储库进行任何提交。您确定这是您打算克隆的存储库吗?

回答by manojlds

This happens when you are cloning a freshly created repository with no commits.

当您在没有提交的情况下克隆新创建的存储库时会发生这种情况。

As it says, it is just a warning. Ifit is expected that there is nothing in the repository, you can go ahead and add files and commit and push back.

正如它所说,这只是一个警告。如果预计存储库中没有任何内容,您可以继续添加文件并提交和推回。

If it is not supposed to be empty, contact the person/admin who gave you the link.

如果它不应该为空,请联系向您提供链接的人员/管理员。