@matheusbsbs / matheus-bagliano / commits / e4add70cd4
Fork 0

user-manual: minor quickstart reorganization

Move around some stuff in the quickstart, add "push" examples. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>

J. Bruce Fields committed Jan 21, 2007 at 22:02 UTC e4add70cd4ce287c9866f7eec5f1e42245e6f846
1 file changed +22 -8
Documentation/user-manual.txt
+22 -8
@@ -187,8 +187,8 @@ $ git pull git://example.com/project.git master
187 $ git pull . test # equivalent to git merge test
188 -----------------------------------------------
189
190 -Sharing development
191 --------------------
190 +Sharing your changes
191 +--------------------
192
193 Importing or exporting patches:
194
@@ -198,12 +198,6 @@ $ git format-patch origin..HEAD # format a patch for each commit
198 $ git-am mbox # import patches from the mailbox "mbox"
199 -----------------------------------------------
200
201 -Fetch a branch from a different git repository:
202 -
203 ------------------------------------------------
204 -$ git fetch git://example.com/project.git theirbranch:mybranch
205 ------------------------------------------------
206 -
201 Fetch a branch in a different git repository, then merge into the
202 current branch:
203
@@ -218,6 +212,26 @@ current branch:
212 $ git pull git://example.com/project.git theirbranch:mybranch
213 -----------------------------------------------
214
215 +After creating commits on a local branch, update the remote
216 +branch with your commits:
217 +
218 +-----------------------------------------------
219 +$ git push ssh://example.com/project.git mybranch:theirbranch
220 +-----------------------------------------------
221 +
222 +When remote and local branch are both named "test":
223 +
224 +-----------------------------------------------
225 +$ git push ssh://example.com/project.git test
226 +-----------------------------------------------
227 +
228 +Shortcut version for a frequently used remote repository:
229 +
230 +-----------------------------------------------
231 +$ git remote add example ssh://example.com/project.git
232 +$ git push example test
233 +-----------------------------------------------
234 +
235 Repositories and Branches
236 =========================
237