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.


The syntax of git command to list repositories is

git remote [-v]


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

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 (fetch)
origin (push)
spark (fetch)
spark (push)

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