зеркало из https://github.com/microsoft/git.git
[PATCH] Documentation: send/receive.
This adds documentation for 'smarter push' family of commands. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
8b3d9dc0e2
Коммит
2a24501363
|
@ -0,0 +1,41 @@
|
||||||
|
git-receive-pack(1)
|
||||||
|
===================
|
||||||
|
v0.1, July 2005
|
||||||
|
|
||||||
|
NAME
|
||||||
|
----
|
||||||
|
git-receive-pack - Receive what is pushed into it
|
||||||
|
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
--------
|
||||||
|
'git-receive-pack' <directory>
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
-----------
|
||||||
|
Invoked by 'git-send-pack' and updates the repository with the
|
||||||
|
information fed from the remote end.
|
||||||
|
|
||||||
|
This command is usually not invoked directly by the end user.
|
||||||
|
The UI for the protocol is on the 'git-send-pack' side, and the
|
||||||
|
program pair is meant to be used to push updates to remote
|
||||||
|
repository. For pull operations, see 'git-fetch-pack' and
|
||||||
|
'git-clone-pack'.
|
||||||
|
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
-------
|
||||||
|
<directory>::
|
||||||
|
The repository to sync into.
|
||||||
|
|
||||||
|
Author
|
||||||
|
------
|
||||||
|
Written by Linus Torvalds <torvalds@osdl.org>
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
--------------
|
||||||
|
Documentation by Junio C Hamano.
|
||||||
|
|
||||||
|
GIT
|
||||||
|
---
|
||||||
|
Part of the link:git.html[git] suite
|
|
@ -0,0 +1,46 @@
|
||||||
|
git-send-pack(1)
|
||||||
|
================
|
||||||
|
v0.1, July 2005
|
||||||
|
|
||||||
|
NAME
|
||||||
|
----
|
||||||
|
git-send-pack - Push missing objects packed.
|
||||||
|
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
--------
|
||||||
|
'git-send-pack' [--exec=<git-receive-pack>] [<host>:]<directory> [<head>...]
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
-----------
|
||||||
|
Invokes 'git-receive-pack' on a possibly remote repository, and
|
||||||
|
updates it from the current repository, sending named heads.
|
||||||
|
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
-------
|
||||||
|
--exec=<git-receive-pack>::
|
||||||
|
Path to the 'git-receive-pack' program on the remote
|
||||||
|
end. Sometimes useful when pushing to a remote
|
||||||
|
repository over ssh, and you do not have the program in
|
||||||
|
a directory on the default $PATH.
|
||||||
|
|
||||||
|
<host>::
|
||||||
|
A remote host to house the repository. When this
|
||||||
|
part is specified, 'git-receive-pack' is invoked via
|
||||||
|
ssh.
|
||||||
|
|
||||||
|
<directory>::
|
||||||
|
The repository to update.
|
||||||
|
|
||||||
|
Author
|
||||||
|
------
|
||||||
|
Written by Linus Torvalds <torvalds@osdl.org>
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
--------------
|
||||||
|
Documentation by Junio C Hamano.
|
||||||
|
|
||||||
|
GIT
|
||||||
|
---
|
||||||
|
Part of the link:git.html[git] suite
|
|
@ -2,7 +2,8 @@
|
||||||
#include "refs.h"
|
#include "refs.h"
|
||||||
#include "pkt-line.h"
|
#include "pkt-line.h"
|
||||||
|
|
||||||
static const char send_pack_usage[] = "git-send-pack [--exec=other] destination [heads]*";
|
static const char send_pack_usage[] =
|
||||||
|
"git-send-pack [--exec=git-receive-pack] [host:]directory [heads]*";
|
||||||
static const char *exec = "git-receive-pack";
|
static const char *exec = "git-receive-pack";
|
||||||
|
|
||||||
struct ref {
|
struct ref {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче