git init will not create git directories for me

后端 未结 8 1317
北荒
北荒 2020-12-31 19:06

I am new to Git. I can get a Git directory structure in a bare directory with git -init --bare. I can see where the git information is stored.

However, w

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 19:49

    Do

    git rev-parse --git-dir
    

    to see where git's finding the repository structure.

    @VonC's got the goods on where the objects are, I'll just add that everything else is repo-local metadata.

提交回复
热议问题