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

RE: Files different for me

From
JDJohn Dlugosz <jdlugosz@tradestation.com>
Date
Feb 25, 2009, 19:01 UTC
Message-ID
<450196A1AAAE4B42A00A8B27A59278E709E048A8@EXCHANGE.trad.tradestation.com>
In-Reply-To
<013B8F55-FBCC-4D3B-9EA4-13C05FFE986B@silverinsanity.com>

Thanks for the clarification, and thanks all on the thread for explaining things to me. It appears that fetching with my local changes is not a problem. For going the other way, you suggest:

	For pushing, I'd suggest either working on new features in a
different
	branch ("topic" and "local" for example), or using "rebase -i"
to move
	your local changes to the top and using "push HEAD^".

I get the idea of floating "that" change to the top and using "push HEAD^", though I've never tried --interactive so I'll have to play around with that on a backup first.

I think if those changes are not committed, it won't be an issue.  

So, my plan at this point is to "stash" my Local Change, and then apply it. Then just keep it out of the index. If I do get a conflict, I can re-apply my change from the stashed copy.

Ordinarily, I'll all about working on a feature on a branch, exposing a "task based" system to other developers. But, this particular change is not isolated, and I'm adding parameter to functions and such (I'm changing the way configuration works and making more things configurable) all over the place. I want to push stable work frequently so other changes don't get too far away making a merge nightmare.

<rant> Last time, I was careful to publish stable code frequently to the official "dev" branch, but when another major feature was finished, they just declared that branch to be the new main-line official branch. </rant>

-----Original Message-----
From: Brian Gernhardt [mailto:benji@silverinsanity.com] 
You can set branch.master.rebase with
   git config branch.master.rebase true

It actually works the other way. Your changes will be rebased on top of the work from other developers.

A--B--E--F  origin/master
     \
      C--D master
will become
A--B--E--F  origin/master
           \
            C'--D' master

I share most of my changes using format-patch and e-mail instead of pushes, so I just don't generate patches for my unimportant changes. For pushing, I'd suggest either working on new features in a different branch ("topic" and "local" for example), or using "rebase -i" to move your local changes to the top and using "push HEAD^".

~~ Brian
Previous: Brian GernhardtNext: Matthieu Moy
Message 5 of 17 in “Files different for me”
  1. John DlugoszFeb 25, 2009
  2. Brian GernhardtFeb 25, 2009
  3. John DlugoszFeb 25, 2009
  4. Brian GernhardtFeb 25, 2009
  5. John DlugoszFeb 25, 2009
  6. Matthieu MoyFeb 25, 2009
  7. Junio C HamanoFeb 25, 2009
  8. Linus TorvaldsFeb 25, 2009
  9. Junio C HamanoFeb 25, 2009
  10. Linus TorvaldsFeb 25, 2009
  11. Junio C HamanoFeb 25, 2009
  12. Linus TorvaldsFeb 25, 2009
  13. Jay SoffianFeb 25, 2009
  14. John DlugoszFeb 25, 2009
  15. John DlugoszFeb 25, 2009
  16. Junio C HamanoFeb 25, 2009
  17. Feanil PatelFeb 25, 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.