X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fgit-push.txt;h=365cfd4105870892306b6376de768b2f0d4b97a3;hb=949964c4af740015c53cb7630fea8795e0f710a0;hp=809ac8ba069a8a97a686d62f1bb586005836f896;hpb=c1067050ce58b5b39f528fe634732da858664603;p=git.git diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 809ac8ba..365cfd41 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -8,7 +8,7 @@ git-push - Update remote refs along with associated objects. SYNOPSIS -------- -'git-push' [--all] [--force] ... +'git-push' [--all] [--tags] [--force] ... DESCRIPTION ----------- @@ -16,11 +16,30 @@ 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 +every time you push into it, by setting up 'hooks' there. See +documentation for gitlink:git-receive-pack[1]. + OPTIONS ------- include::pull-fetch-param.txt[] +\--all:: + Instead of naming each ref to push, specifies all refs + to be pushed. + +\--tags:: + All refs under `$GIT_DIR/refs/tags` are pushed, in + addition to refspecs explicitly listed on the command + line. + +-f, \--force:: + Usually, the command refuses to update a local ref that is + not an ancestor of the remote ref used to overwrite it. + This flag disables the check. What this means is that the + local repository can lose commits; use it with care. + Author ------