I got something really strange.
When I use git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git master
to generate a new repository, I found that there exist a folder in it which I upload 2 days ago.
Then I used git ls-tree -r master --name-only
to list the all the files currently being tracked under the branch master. They are exactly what I have in my new repo.
But this trouble doesn't occur at all if I create a new project directly in the website then clone it to local and push the new modifications.
So what's the reason?
Thank you!