git-remote
Manage remote repository connections
TLDR
List remotes
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 in distributed workflows.
Common operations include adding upstream remotes for fork-based development, changing URLs after repository migrations, renaming remotes, and inspecting remote configuration details like tracked branches and push/fetch URLs.
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.
CONFIGURATION
.git/config
Repository remote configuration with URLs and refspecs.
url = https://github.com/user/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
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.
