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