Git ls-remote: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Git Commands") |
No edit summary |
||
Line 2: | Line 2: | ||
* [[Git_Commands#Remote_Repository_Interaction|Git Commands]] | * [[Git_Commands#Remote_Repository_Interaction|Git Commands]] | ||
=Overview= | |||
Displays [[Git_Concepts#Reference|references]] available in a [[Git_Concepts#Remote_Repository|remote repository]], along with their commit IDs. The remote repository is optionally specified by its [[Git_Concepts#Remote|remote]] name. If there's no remote name, [[Git_Concepts#.22origin.22|"origin"]] is implied. | |||
git ls-remote [''remote-name''] | |||
git ls-remote | |||
From git@github.com:NovaOrdis/events-api.git | |||
ddef4be738580d3de3b24a6159ba6470f8a88008 HEAD | |||
ddef4be738580d3de3b24a6159ba6470f8a88008 refs/heads/master | |||
03754ab8f149f03b3ca7c10a6f33e806fdc7bf77 refs/tags/release-1.1 | |||
... |
Latest revision as of 20:28, 11 December 2017
Internal
Overview
Displays references available in a remote repository, along with their commit IDs. The remote repository is optionally specified by its remote name. If there's no remote name, "origin" is implied.
git ls-remote [remote-name]
git ls-remote From git@github.com:NovaOrdis/events-api.git ddef4be738580d3de3b24a6159ba6470f8a88008 HEAD ddef4be738580d3de3b24a6159ba6470f8a88008 refs/heads/master 03754ab8f149f03b3ca7c10a6f33e806fdc7bf77 refs/tags/release-1.1 ...