When you clone a repository with git clone, it automatically creates a remote called origin pointing to the cloned repository.
By default, the git remote command will list previously stored remote connections to other repositories:
git remote
Invoking git remote with the -v option will print the list of bookmarked repository names and additionally, the corresponding repository URL:
git remote -v
The git remote command is essentially an interface for managing a list of remote entries that are stored in the repository's ./.git/config file.git remote add <name> <url>
Removing remote:
git remote rm <name>
Rename a remote:
git remote rename <old-name> <new-name>
Inspecting a remote:
git remote show origin
Pushing to remote:
git push <remote-name> <branch-name>