Git Remote – List repositories

Git Remote is used to manage list of online repositories being tracked locally. Following is the syntax to display repositories list being tracked in the local machine.

Syntax

The syntax of git command to list repositories is

git remote [-v]

Example

In the following example, we shall display repositories list.

Run the following command.

  git remote

The command gets the list of repositories in the remote system.

$ git remote
origin
spark

Well! There are two repositories being tracked from the git of local machine.

Verbose Option

Let us use the verbose option with the git remote command.

$ git remote -v
origin	https://github.com/tutorialkart/git-tutorial.git (fetch)
origin	https://github.com/tutorialkart/git-tutorial.git (push)
spark	https://github.com/apache/spark (fetch)
spark	https://github.com/apache/spark (push)

Not only the name of remotes are displayed, but also the url and the operations it supports.