Git ls-remote

From NovaOrdis Knowledge Base
Revision as of 20:28, 11 December 2017 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 
...