I have seen git repository in two different ways:
Case I:
I am creating my own git repository using commands as (git init followed by git add and git commit
). And here if see my directory contains files/folder with sources and that of .git directory.
Case II:
In another case where i am seeing another git repository with folders something like (branches/, description, hooks/, objects/, refs/, config, HEAD, info/, packed-refs).
Can someone please let me know how to create the git repository as mentioned in case II?