Thread (20 messages) flat view 20 messages, 11 authors, 2016-06-15

Re: git rebase -i

From: Theodore Tso <tytso@mit.edu>
Date: 2016-06-15 22:46:14

On Thu, Feb 19, 2009 at 05:20:53AM -0500, Jeff King wrote:
quoted
Yes, I do the same. But notice that you did "git rebase -i -- 
quoted
quoted
quoted
origin<<<---". Seems to me you are definitely _thinking_ in terms of 
your topic _branch_ and not in terms of "the last few commits".
Perhaps. I think of it as "the set of commits not yet published"
(since I publish only by sending patches to Junio, and he is my origin)
and nothing to do with the topic branch itself.
Indeed, I bet most people who use this workflow think of git rebase -i
origin or "git rebase -i HEAD^^^^" (where I normally figure out how
many commits I need to go back and type the right number of carets) as
a magic command that does what we want, without necessarily thinking
about why it works the way that it does.

I can guarantee that most of the time I don't think "hmm, so I'm going
to be rebasing my topic branch onto origin so I can make some
changes."  Nope, it's, "I'm going to futz with the commits to get them
just right".

   	     	 	    	     - Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help