Search notes:
git remote
git remote
allows to create, view and delete
connections to other
repositories.
Such a connection is a (usually easy-to-type) alias for a (usually harder-to-type)
URL.
git push <remote-name> <branch-name>
Cloning a repository automatically creates a remote named
origin
.
These aliases (referred to as
remote entries) are stored in a repository's
.git/config
file.
git remote add tq84Name https://…
git remote rename tq84Name tq84
git remote rm tq84
The list of configured remotes can be displayed with
git remote
git remote -v
Show detailed information about a given remote:
git remote show origin
Display remote's URL
The
URL of a remote (for example
origin
) can be displayed with
git remote get-url origin
This command is useful to determine from which URL a repository was originally
cloned.