git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Update Webservers from a remote repository

From
Matthias Fechner <idefix@fechner.net>
Date
Sep 21, 2010, 09:02 UTC
Message-ID
<4C9874BB.5060908@fechner.net>
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
Next: Ilari Liusvaara
Message 1 of 3 in “Update Webservers from a remote repository”
  1. Matthias FechnerSep 21, 2010
  2. Ilari LiusvaaraSep 21, 2010
  3. Matthias FechnerSep 21, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.