git clone https://github.com/someone/st... /tmp/sth
ls /tmp/sth
将git仓库里面的东西全部拉取回来,再ls 文件。
可否不clone回来,直接在本地端list git仓库里面的文件?
怪我咯2017-05-02 09:47:52
I searched for this Browse and display files in a git repo without cloning
If you use github, you can, the github library supports svn
svn ls -R https://github.com/yangg/dot2val/branches/master/
Or this answer uses the github api. You have to commit it first, which is a little troublesome