git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Robert Smith <wolf1boy79@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: Newbie using git -- need a little help
Date: Tue, 19 Jun 2007 00:10:28 -0400	[thread overview]
Message-ID: <20070619041028.GG2825@fieldses.org> (raw)
In-Reply-To: <42118.74778.qm@web57410.mail.re1.yahoo.com>

On Sun, Jun 17, 2007 at 11:55:52AM -0700, Robert Smith wrote:
> I've read over the documentation (the full manual) numerous times and
> must admit it's slightly overwhelming.
...
> I have both a desktop computer, a laptop, and a server where I host my
> git repository.  The goal for having this public repository is for me
> to be able to program on my desktop, then push the changes to the
> server, and then continue development on, say, my laptop later on
> grabbing the newer tree.

Others answered your question, I think, so I was just trying to figure
out how to make that bit of the manual more helpful.  Do you think
something like this would have saved you any time?

--b.

(Feedback like "I tried to figure out how to do X by reading Y, and
couldn't" is much appreciated, by the way--thanks.)

---
 Documentation/user-manual.txt |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index e9da591..caa23c7 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1772,7 +1772,7 @@ repository, but it works just as well in the other direction.
 
 If you and the maintainer both have accounts on the same machine, then
 you can just pull changes from each other's repositories directly;
-commands that accepts repository URLs as arguments will also accept a
+commands that accept repository URLs as arguments will also accept a
 local directory name:
 
 -------------------------------------------------
@@ -1780,6 +1780,15 @@ $ git clone /path/to/repository
 $ git pull /path/to/other/repository
 -------------------------------------------------
 
+or an ssh url:
+
+-------------------------------------------------
+$ git clone ssh://yourhost/~you/repository
+-------------------------------------------------
+
+For projects with few developers, or for synchronizing a few private
+repositories, this may be all you need.
+
 However, the more common way to do this is to maintain a separate public
 repository (usually on a different host) for others to pull changes
 from.  This is usually more convenient, and allows you to cleanly
@@ -1802,6 +1811,8 @@ like this:
         |               they push             V
   their public repo <------------------- their repo
 
+We explain how to do this in the following sections.
+
 [[setting-up-a-public-repository]]
 Setting up a public repository
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1913,6 +1924,12 @@ proceeding the branch name by a plus sign:
 $ git push ssh://yourserver.com/~you/proj.git +master
 -------------------------------------------------
 
+Note that the target of a "push" is normally a
+<<def_bare_repository,bare>> repository.  You can also push to a
+repository that has a checked-out working tree, but the working tree
+will not be updated by the push.  This may lead to unexpected results if
+the branch you push to is the currently checked-out branch.
+
 As with git-fetch, you may also set up configuration options to
 save typing; so, for example, after
 
-- 
1.5.2.2.238.g7cbf2f2

  parent reply	other threads:[~2007-06-19  4:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-17 18:55 Newbie using git -- need a little help Robert Smith
2007-06-17 19:17 ` Thomas Glanzmann
2007-06-19  4:10 ` J. Bruce Fields [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-17 20:06 Robert Smith
2007-06-17 20:30 ` Thomas Glanzmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070619041028.GG2825@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=git@vger.kernel.org \
    --cc=wolf1boy79@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).