Git ls-remote

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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