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

How to update? (git Changed but not updated)

From
RNReto S. News <retoh@dplanet.ch>
Date
Feb 21, 2009, 21:23 UTC
Message-ID
<49A070B5.90909@dplanet.ch>
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
Next: Sitaram Chamarty
Message 1 of 4 in “How to update? (git Changed but not updated)”
  1. Reto S. NewsFeb 21, 2009
  2. Sitaram ChamartyFeb 22, 2009
  3. Rainer BlomeFeb 22, 2009
  4. Reto SchärFeb 22, 2009

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.