Executing git commands on a bare repository

风流意气都作罢 提交于 2019-12-03 14:19:10

You can run this one:

git ls-tree -r HEAD --name-only

Obviously you have to specify a branch or reference, because there is no working tree or index in a bare repository.

I don't know for other commands but you can actually do most of them in a bare repository, but those that require a working tree.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!