Browse Source
Describe short-hand for remote repository used in fetch/pull. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>maint
Junio C Hamano
20 years ago
committed by
Linus Torvalds
5 changed files with 130 additions and 6 deletions
@ -0,0 +1,47 @@
@@ -0,0 +1,47 @@
|
||||
git-fetch-script(1) |
||||
=================== |
||||
v0.1, July 2005 |
||||
|
||||
NAME |
||||
---- |
||||
git-fetch-script - Download objects and a head from another repository. |
||||
|
||||
|
||||
SYNOPSIS |
||||
-------- |
||||
'git-fetch-script' <repository> [ <head> | tag <tag> ] |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Fetches a named head or a tag from another repository, along |
||||
with the objects necessary to complete that head or tag. The |
||||
head to pull defaults to HEAD if unspecified. The head or tag |
||||
fetched from the remote repository is stored in |
||||
$GIT_DIR/FETCH_HEAD. |
||||
|
||||
When a <tag> is specified, the <tag> fetched from the remote is |
||||
also copied to the local $GIT_DIR/tags/<tag> file. When no |
||||
<head> nor <tag> is specified, and <repository> was specified |
||||
with the short-hand notation (i.e. naming a file under the |
||||
$GIT_DIR/branches directory), the head fetched from the remote |
||||
repository is also copied to the local $GIT_DIR/heads/<repository> |
||||
file. |
||||
|
||||
|
||||
OPTIONS |
||||
------- |
||||
include::pull-fetch-param.txt[] |
||||
|
||||
|
||||
Author |
||||
------ |
||||
Written by Linus Torvalds <torvalds@osdl.org> and Junio C Hamano <junkio@cox.net> |
||||
|
||||
Documentation |
||||
-------------- |
||||
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. |
||||
|
||||
GIT |
||||
--- |
||||
Part of the link:git.html[git] suite |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
<repository>:: |
||||
The "remote" repository to pull from. One of the |
||||
following notations can be used to name the repository |
||||
to pull from: |
||||
|
||||
Rsync URL |
||||
rsync://remote.machine/path/to/repo.git/ |
||||
|
||||
HTTP(s) URL |
||||
http://remote.machine/path/to/repo.git/ |
||||
|
||||
GIT URL |
||||
git://remote.machine/path/to/repo.git/ |
||||
remote.machine:/path/to/repo.git/ |
||||
|
||||
Local directory |
||||
/path/to/repo.git/ |
||||
|
||||
In addition to that, as a short-hand, the name of a file |
||||
in $GIT_DIR/branches directory can be specified; the |
||||
named file should contain a single line, a URL in one of |
||||
the above formats, optionally followed by a hash '#' and |
||||
the name of remote head. |
||||
|
||||
<head>:: |
||||
The remote head name to fetch from. That is, make the |
||||
objects reachable from the commit recorded in |
||||
$GIT_DIR/refs/heads/<head> in the remote repository |
||||
available locally. |
||||
|
||||
tag <tag>:: |
||||
The remote head tag to fetch from. That is, make the |
||||
objects reachable from the commit recorded in |
||||
$GIT_DIR/refs/tags/<tag> in the remote repository |
||||
available locally. |
||||
|
Loading…
Reference in new issue