git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Reto S. News" <retoh@dplanet.ch>
To: git@vger.kernel.org
Subject: How to update? (git Changed but not updated)
Date: Sat, 21 Feb 2009 22:23:01 +0100	[thread overview]
Message-ID: <49A070B5.90909@dplanet.ch> (raw)

Beginner question: "How to update the pushed changes on the master?"

As a proof of concept to switch from CVS to git I prepared an
environment on two servers. I call the one "Slave" and "Master"
the other. Almost everything is working besides a silly
"cvs update" functionality I couldn't still find out after hours.

On Slave Host (a Developer that receives a working copy of a project):

$ git clone git://master.example.net/test myrepo
$ cd myrepo   # ... here I see all received files from the master
$ Changing file "foo.txt"
$ git add .   # ... for whatever reason this is necessary
$ git commit -m 'I changed this file'
$ git push

On Master Host (master.example.net):

# git status # Shows me correctly foo.txt has been changed by the"Slave"
# git show   # Shows me even the made changes in a diff style!


Now I have to update the fresh content produced by the "Slave". As an
ugly work-around, I'm currently cloning it again from localhost :-|

Any suggestions are very appreciated.

--reto

             reply	other threads:[~2009-02-21 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-21 21:23 Reto S. News [this message]
2009-02-22  1:10 ` How to update? (git Changed but not updated) Sitaram Chamarty
2009-02-22  1:32 ` Rainer Blome
2009-02-22 10:07 ` Reto Schär

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=49A070B5.90909@dplanet.ch \
    --to=retoh@dplanet.ch \
    --cc=git@vger.kernel.org \
    /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).