Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-push(1) |
| 2 | =========== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | git-push - Update remote refs along with associated objects. |
| 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 02d6fa5 | 2006-01-16 08:23:23 | [diff] [blame^] | 11 | 'git-push' [--all] [--tags] [--force] <repository> <refspec>... |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | |
| 16 | Updates remote refs using local refs, while sending objects |
| 17 | necessary to complete the given refs. |
| 18 | |
| 19 | You can make "interesting" things to happen on the repository |
| 20 | every time you push into it, by setting up 'hooks' there. See |
| 21 | documentation for gitlink:git-receive-pack[1]. |
| 22 | |
| 23 | |
| 24 | OPTIONS |
| 25 | ------- |
| 26 | include::pull-fetch-param.txt[] |
| 27 | |
| 28 | \--all:: |
| 29 | Instead of naming each ref to push, specifies all refs |
| 30 | to be pushed. |
| 31 | |
Junio C Hamano | 02d6fa5 | 2006-01-16 08:23:23 | [diff] [blame^] | 32 | \--tags:: |
| 33 | All refs under `$GIT_DIR/refs/tags` are pushed, in |
| 34 | addition to refspecs explicitly listed on the command |
| 35 | line. |
| 36 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 37 | -f, \--force:: |
| 38 | Usually, the command refuses to update a local ref that is |
| 39 | not an ancestor of the remote ref used to overwrite it. |
| 40 | This flag disables the check. What this means is that the |
| 41 | local repository can lose commits; use it with care. |
| 42 | |
| 43 | |
| 44 | Author |
| 45 | ------ |
| 46 | Written by Junio C Hamano <junkio@cox.net> |
| 47 | |
| 48 | Documentation |
| 49 | -------------- |
| 50 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 51 | |
| 52 | GIT |
| 53 | --- |
| 54 | Part of the gitlink:git[7] suite |
| 55 | |