Bootstrap FreeKB - Git (Version Control) - List files in a remote repository using the git ls-remote command
Git (Version Control) - List files in a remote repository using the git ls-remote command

Updated:   |  Git (Version Control) articles

The git ls-remote command can be used to list the files in a remote repository. In this example, the files in the https://github.com/sclorg/cakephp-ex will be listed.

~]# git ls-remote https://github.com/sclorg/cakephp-ex
69743d924a9bfeeee309590fc279f33430a9f009        HEAD
bb0c3c43afbdd42fd4dc079b2fb990e08ebd1618        refs/heads/dependabot/composer/composer/composer-1.10.26
69743d924a9bfeeee309590fc279f33430a9f009        refs/heads/master
8445402b38f40f6f6e9412307cfe4f895d105dbc        refs/heads/revert-93-dev/cuppett/cakephp-ex-upgrade-3.5
e1f6929b0f55073741c37bde2b0e180bffcff6fa        refs/pull/1/head
94d1c09078693466d3eacbb10cc255efec8d8005        refs/pull/10/head
3a4ae42f75ed56efe637e3fe1d10c6f6136f54a3        refs/pull/101/head
bcb844e95f3a5cbe679e344d1d4bdf1bbfee70f9        refs/pull/101/merge

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 9e21a6 in the box below so that we can be sure you are a human.