Warning: You appear to have cloned empty repositor

2019-02-21 10:07发布

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:

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?

2条回答
等我变得足够好
2楼-- · 2019-02-21 10:19

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?

查看更多
Evening l夕情丶
3楼-- · 2019-02-21 10:26

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.

查看更多
登录 后发表回答