git ls-files in bare repository

前端 未结 1 1550
面向向阳花
面向向阳花 2021-02-01 02:03

I want to access a bare git repository, and I want to list all files in the repository.

On a normal git repository I can easily do that by running git ls-files

相关标签:
1条回答
  • 2021-02-01 02:35

    You can try the other command which list files:

    git ls-tree --full-tree -r HEAD
    

    According to this comment, the command git ls-tree works in bare repo.

    0 讨论(0)
提交回复
热议问题