Skip to content

Commit

Permalink
Documentation for the [remote] config
Browse files Browse the repository at this point in the history
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
sbejar authored and Junio C Hamano committed Oct 23, 2006
1 parent 2bb10fe commit 0cc6d34
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/config.txt
Expand Up @@ -230,6 +230,18 @@ pull.octopus::
pull.twohead::
The default merge strategy to use when pulling a single branch.

remote.<name>.url::
The URL of a remote repository. See gitlink:git-fetch[1] or
gitlink:git-push[1].

remote.<name>.fetch::
The default set of "refspec" for gitlink:git-fetch[1]. See
gitlink:git-fetch[1].

remote.<name>.push::
The default set of "refspec" for gitlink:git-push[1]. See
gitlink:git-push[1].

show.difftree::
The default gitlink:git-diff-tree[1] arguments to be used
for gitlink:git-show[1].
Expand Down
8 changes: 8 additions & 0 deletions Documentation/urls.txt
Expand Up @@ -51,6 +51,14 @@ lines are used for `git-push` and `git-fetch`/`git-pull`,
respectively. Multiple `Push:` and `Pull:` lines may
be specified for additional branch mappings.

Or, equivalently, in the `$GIT_DIR/config` (note the use
of `fetch` instead of `Pull:`):

[remote "<remote>"]
url = <url>
push = <refspec>
fetch = <refspec>

The name of a file in `$GIT_DIR/branches` directory can be
specified as an older notation short-hand; the named
file should contain a single line, a URL in one of the
Expand Down

0 comments on commit 0cc6d34

Please sign in to comment.