Git remote command

In Git, the term remote is concerned with the remote repository. It is a shared repository that all team members use to exchange their changes.

Check our Remote

To check the configuration of the remote server, run the git remote command. This command lists the names of remote repositories that our local repository knows about.

Your image is not available

The given command is providing the remote name as the origin. Origin is the default name for the remote server, which is given by Git.

git remote -v

The git remote supports a specific option -v to show the URLs of the remote repositories that Git has stored as a short name.


git remote -v
Your image is not available

git remote rename

Git allows us renaming the remote reference name.

git remote rename <old name> <new name>

Replace <old name> with the current name of the remote, and <new name> with the new name we want to assign to it.