GIT-REMOTE(1) (NAME) git-remote - (SYNOPSIS) git remote [-v | --verbose] git remote add [-t ] [-m ] [-f] [--[no-]tags] [--mirror=(fetch|push)] git remote rename [--[no-]progress] git remote remove git remote set-head (-a | --auto | -d | --delete | ) git remote set-branches [--add] ... git remote get-url [--push] [--all] git remote set-url [--push] [] git remote set-url --add [--push] git remote set-url --delete [--push] git remote [-v | --verbose] show [-n] ... git remote prune [-n | --dry-run] ... git remote [-v | --verbose] update [-p | --prune] [( | )...] (DESCRIPTION) (<> ) . (OPTIONS) -v, --verbose (URL) . (promisor remotes) (blob:none ) . : remote . (COMMANDS) . . add . git fetch / . -f git fetch . --tags git fetch . --no-tags git fetch . ( git-fetch(1)). -t glob refspec refs/remotes// refspec . -t . -m (symbolic-ref) refs/remotes//HEAD . set-head . --mirror=fetch (fetch mirror) refs/remotes/ refs/ refs/ . bare fetch . --mirror=push (push mirror) git push --mirror . rename . . $GIT_DIR/remotes $GIT_DIR/branches . remove, rm . . set-head ( refs/remotes//HEAD) . . origin master origin origin/master . -d --delete refs/remotes//HEAD . -a --auto HEAD refs/remotes//HEAD HEAD next git remote set-head origin -a refs/remotes/origin/HEAD refs/remotes/origin/next . refs/remotes/origin/next (fetch) . refs/remotes//HEAD git remote set-head origin master refs/remotes/origin/HEAD refs/remotes/origin/master . refs/remotes/origin/master (fetch) . set-branches . . -t git remote add . --add . get-url (URL) . insteadOf pushInsteadOf . URL . --push URL (fetch) (push) . --all URL . set-url (URL) . URL (regex) ( URL ) . URL . --push URL . --add URL . --delete URL URL . URL push . (push URL) (fetch URL) . push URL fetch URL . ( ) ( ) . show . -n head git ls-remote . prune . . git fetch --prune . PRUNING git-fetch(1) . --dry-run . update remotes. . remotes.default remotes.default remote..skipDefaultUpdate true . ( git- config(1)). --prune . (DISCUSSION) remote.origin.url remote.origin.fetch . ( git-config(1)). (EXIT STATUS) 0 . add rename remove 2 . 3 . . (EXAMPLES) o (fetch) $ git remote origin $ git branch -r origin/HEAD -> origin/master origin/master $ git remote add staging git://git.kernel.org/.../gregkh/staging.git $ git remote origin staging $ git fetch staging ... From git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging * [new branch] master -> staging/master * [new branch] staging-linus -> staging/staging-linus * [new branch] staging-next -> staging/staging-next $ git branch -r origin/HEAD -> origin/master origin/master staging/master staging/staging-linus staging/staging-next $ git switch -c staging staging/master ... o git clone $ mkdir project.git $ cd project.git $ git init $ git remote add -f -t master -m master origin git://example.com/git.git/ $ git merge origin (SEE ALSO) git-fetch(1) git-branch(1) git-config(1) (GIT) git(1) Git 2.55.0 2026-06-29 GIT-REMOTE(1)