Git no branches

I created a bare repository, than cloned it. When I do git branch -a nothing is displayed. Why can't I even see the master branch by default? Although git bash shows the following:

 /some/path/project (master) 
+6
source share
1 answer

You probably cloned an empty repository, there is nothing to point out for the master branch.

  • A branch points to a commit
  • A commit points to a tree
  • A tree lists some blobs or other trees
+7
source

Source: https://habr.com/ru/post/957236/


All Articles