Warning: You appear to have cloned empty repository in TortoiseGit

杀马特。学长 韩版系。学妹 提交于 2019-12-04 03:03:44

问题


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:

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

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?


回答1:


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?




回答2:


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

As it says, it is just a warning. If it 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.



来源:https://stackoverflow.com/questions/8130894/warning-you-appear-to-have-cloned-empty-repository-in-tortoisegit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!