summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef89f70)
raw | patch | inline | side by side (parent: ef89f70)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 22 Jan 2007 03:02:34 +0000 (22:02 -0500) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 22 Jan 2007 03:02:34 +0000 (22:02 -0500) |
Move around some stuff in the quickstart, add "push" examples.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index df0f76241bfa42a98baae561106b68c82f32dd35..3f231811523f41cd67d11f7de884e5d572e10f9e 100644 (file)
$ git pull . test # equivalent to git merge test
-----------------------------------------------
-Sharing development
--------------------
+Sharing your changes
+--------------------
Importing or exporting patches:
$ git-am mbox # import patches from the mailbox "mbox"
-----------------------------------------------
-Fetch a branch from a different git repository:
-
------------------------------------------------
-$ git fetch git://example.com/project.git theirbranch:mybranch
------------------------------------------------
-
Fetch a branch in a different git repository, then merge into the
current branch:
$ git pull git://example.com/project.git theirbranch:mybranch
-----------------------------------------------
+After creating commits on a local branch, update the remote
+branch with your commits:
+
+-----------------------------------------------
+$ git push ssh://example.com/project.git mybranch:theirbranch
+-----------------------------------------------
+
+When remote and local branch are both named "test":
+
+-----------------------------------------------
+$ git push ssh://example.com/project.git test
+-----------------------------------------------
+
+Shortcut version for a frequently used remote repository:
+
+-----------------------------------------------
+$ git remote add example ssh://example.com/project.git
+$ git push example test
+-----------------------------------------------
+
Repositories and Branches
=========================