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

Re: How to commit changes if remote repository changed directory structure?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Mar 20, 2009, 22:30 UTC
Message-ID
<20090320223005.GA25057@fieldses.org>
In-Reply-To
<20090320071319.GF27008@coredump.intra.peff.net>
On Fri, Mar 20, 2009 at 03:13:19AM -0400, Jeff King wrote:
Show 14 quoted lines
> On Fri, Mar 20, 2009 at 12:08:51AM -0700, Junio C Hamano wrote:
> 
> > > First, commit your changes. Then merge the other developer's changes. :)
> > 
> > We should probably point out to new people that "first commit and then
> > worry about merges after your changes are safely committed" is always how
> > people would "go about" anything.
> 
> Yes, absolutely.
> 
> Most of the current documentation focuses on being a reference to
> particular commands or tasks. But this is more of a "philosophy of
> working with git" item. I guess it should go in the user manual
> somewhere. Cc'ing Bruce, who may have some comments.

I agree, that's kind of an odd hold in the user manual. Maybe it goes without saying, but it might be useful somewhere in ch. 3, maybe when introducing commits, something along the lines of: "note all of these commits are stored only in your local repository, and are visible only to you. With some version control systems, "committing" requires sending the commit to a central server. With git, you are expected to do all your work locally and only merge with others' work when necessary; we'll learn how to do that in <chapter 4>."

And then say something similar again at the start of chapter 4?
--b.
Previous: Jeff King
Message 5 of 5 in “How to commit changes if remote repository changed directory structure?”
  1. andholtMar 20, 2009
  2. Jeff KingMar 20, 2009
  3. Junio C HamanoMar 20, 2009
  4. Jeff KingMar 20, 2009
  5. J. Bruce FieldsMar 20, 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.