X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-push.txt;h=d5b5ca167ccf3fcfaeb818a305ca79b37dcd7bf8;hb=28cc4ab4224164971a523e8a6c222b5ab2bae27d;hp=7e9452efe1f82a34fb5d2e5eff847bd93a1260f6;hpb=3598a308086d4a41cab1e941df7763f2004e53c5;p=git.git diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 7e9452ef..d5b5ca16 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -3,7 +3,7 @@ git-push(1) NAME ---- -git-push - Update remote refs along with associated objects. +git-push - Update remote refs along with associated objects SYNOPSIS @@ -16,7 +16,7 @@ DESCRIPTION Updates remote refs using local refs, while sending objects necessary to complete the given refs. -You can make "interesting" things to happen on the repository +You can make interesting things happen to a repository every time you push into it, by setting up 'hooks' there. See documentation for gitlink:git-receive-pack[1]. @@ -24,8 +24,8 @@ documentation for gitlink:git-receive-pack[1]. OPTIONS ------- :: - The "remote" repository that is destination of a push operation. -include::urls.txt[] + The "remote" repository that is destination of a push + operation. See the section <> below. :: The canonical format of a parameter is @@ -43,6 +43,12 @@ to fast forward the remote ref that matches . If the optional plus `+` is used, the remote ref is updated even if it does not result in a fast forward update. + +Note: If no explicit refspec is found, (that is neither +on the command line nor in any Push line of the +corresponding remotes file---see below), then all the +refs that exist both on the local side and on the remote +side are updated. ++ Some short-cut notations are also supported. + * `tag ` means the same as `refs/tags/:refs/tags/`. @@ -51,8 +57,8 @@ Some short-cut notations are also supported. in the source. \--all:: - Instead of naming each ref to push, specifies all refs - to be pushed. + Instead of naming each ref to push, specifies that all + refs be pushed. \--tags:: All refs under `$GIT_DIR/refs/tags` are pushed, in @@ -65,6 +71,7 @@ Some short-cut notations are also supported. This flag disables the check. This can cause the remote repository to lose commits; use it with care. +include::urls.txt[] Author ------