git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Fechner <idefix@fechner.net>
To: git@vger.kernel.org
Subject: Update Webservers from a remote repository
Date: Tue, 21 Sep 2010 11:02:51 +0200	[thread overview]
Message-ID: <4C9874BB.5060908@fechner.net> (raw)

Dear list,

I'm new to git but the more I use it I more I like/love it. :)

I have a central --bare git repository which is the master for all web 
servers (I did a git clone http://xxx on each web server).
If I now push changes from my devel station to the central repository I 
would like to have them available on all server with a script.

If I understood everything correctly I execute the following commands on 
each server:
git checkout master (to be sure we are on branch master)
git fetch (to fetch changes from the central repository)
git merge origin (to update the repo to the changes on the central repo)

I use here origin because the remote name for the central server in the 
.git/config file is named origin.

Is that correct or did I missed something?

Thanks,
Matthias

-- 
"Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning." -- 
Rich Cook

             reply	other threads:[~2010-09-21  9:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21  9:02 Matthias Fechner [this message]
2010-09-21  9:41 ` Update Webservers from a remote repository Ilari Liusvaara
2010-09-21 10:52   ` Matthias Fechner

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=4C9874BB.5060908@fechner.net \
    --to=idefix@fechner.net \
    --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).