Git


Git Remote All Versions

0.99
1.0
1.1
1.2
1.3
1.4
1.5
1.5.3
1.6
1.6.3
1.6.5
1.7
1.7.10
1.8
1.8.3
1.9
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.10.2
2.11
2.11.1

This draft deletes the entire topic.

Examples

Please consider making a request to improve this example.

Syntax

  • git remote [-v | --verbose]
  • git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>]<name> <url>
  • git remote rename <old> <new>
  • git remote remove <name>
  • git remote set-head <name> (-a | --auto | -d | --delete | <branch>)
  • git remote set-branches [--add] <name> <branch>...
  • git remote set-url [--push] <name> <newurl> [<oldurl>]
  • git remote set-url --add [--push] <name> <newurl>
  • git remote set-url --delete [--push] <name> <url>
  • git remote [-v | --verbose] show [-n] <name>...
  • git remote prune [-n | --dry-run] <name>...
  • git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]
  • git remote show <name>

Parameters

ParameterDetails
-v, --verboseRun verbosely.
-m <master>Sets head to remote's <master> branch
--mirror=fetchRefs will not be stored in refs/remotes namespace, but instead will be mirrored in the local repo
--mirror=pushgit push will behave as if --mirror was passed
--no-tagsgit fetch <name> does not import tags from the remote repo
-t <branch>Specifies the remote to track only <branch>
-fgit fetch <name> is run immediately after remote is set up
--tagsgit fetch <name> imports every tag from the remote repo
-a, --autoThe symbolic-ref's HEAD is set to the same branch as the remote's HEAD
-d, --deleteAll listed refs are deleted from the remote repository
--addAdds <name> to list of currently tracked branches (set-branches)
--addInstead of changing some URL, new URL is added (set-url)
--allPush all branches.
--deleteAll urls matching <url> are deleted. (set-url)
--pushPush URLS are manipulated instead of fetch URLS
-nThe remote heads are not queried first with git ls-remote <name>, cached information is used instead
--dry-runreport what branches will be pruned, but do not actually prune them
--pruneRemove remote branches that don't have a local counterpart

Remarks

Remarks

Still have a question about Git Remote? Ask Question

Topic Outline