git-remote
TLDR
List remotes
$ git remote -v
Add remote$ git remote add [name] [url]
Remove remote$ git remote remove [name]
Rename remote$ git remote rename [old] [new]
Show remote details$ git remote show [origin]
SYNOPSIS
git remote [command] [options]
DESCRIPTION
git remote manages tracked remote repositories. It configures URLs and refspecs for fetch and push operations, enabling interaction with multiple remote repositories.
The command handles the remote setup that enables distributed workflows. Common operations include adding upstreams, changing URLs after repository moves, and inspecting remote configuration.
git remote configures repository remote connections.
PARAMETERS
add NAME URL
Add new remote.remove NAME
Remove remote.rename OLD NEW
Rename remote.show NAME
Show remote info.set-url NAME URL
Change remote URL.-v, --verbose
Show URLs.--help
Display help information.
CAVEATS
Remote names are local aliases. URLs can differ for fetch and push. Removing remote keeps fetched objects.
HISTORY
git remote is a core Git command for managing the remote repository connections essential to distributed version control.


