Is it possible to remote count object and size of git repository?

后端 未结 5 721

Assume that somewhere in the web exists public git repository. I want to clone it but firstly i need to be sure what is size of it (how much objects & kbytes like in

5条回答
  •  长情又很酷
    2020-12-25 11:46

    Not that I know of:
    Git is not a server, there is nothing by default listening to a request (unless you activate a gitweb, or a gitolite layer)
    And the command "git remote ..." deals with the local copy (fetched) of a remote repo.

    So unless you fetch something, or clone --bare a remote repo (which does not checkout the files, so you only have the Git database alone), you won't have an idea of its size.
    And that does not include the size of the working directory, once checked out.

提交回复
热议问题