列出本地git仓库中的文件? [英] List files in local git repo?
本文介绍了列出本地git仓库中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我希望能够浏览文件和dirs,我已经上传到我的服务器,但我不知道如何?
我知道Git使用某种特殊文件层次结构,我只是不能列出我的文件吧?
但如何将我必须做的,列出它们,浏览我的文件?
解决方案
这个命令:
git ls-tree --full-tree -r HEAD
列出您的git仓库跟踪的所有已提交的文件。
I'm using Sparkleshare, which uses Git to sync files between my laptop and my backup server.
Now I want to be able to browse in the files and dirs that I've uploaded to my server, but I dont know how?
I understand that Git uses some sort of special file hierarchy and that I just cant list my files, right?
But how would I have to do to list them and browse my files?
解决方案
This command:
git ls-tree --full-tree -r HEAD
lists all of the already committed files being tracked by your git repo.
这篇关于列出本地git仓库中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文