search

Home  >  Q&A  >  body text

Can you list the files in the git repository locally?

git clone https://github.com/someone/st... /tmp/sth
ls /tmp/sth
Pull everything back from the git warehouse, and then ls the file.
Is it possible to list the files in the git repository locally without cloning it?

曾经蜡笔没有小新曾经蜡笔没有小新2827 days ago645

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