Home  >  Q&A  >  body text

可否在本地端list git仓库里面的文件

git clone https://github.com/someone/st... /tmp/sth
ls /tmp/sth
将git仓库里面的东西全部拉取回来,再ls 文件。
可否不clone回来,直接在本地端list git仓库里面的文件?

曾经蜡笔没有小新曾经蜡笔没有小新2748 days ago593

reply all(1)I'll reply

  • 怪我咯

    怪我咯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

    reply
    0
  • Cancelreply