Re: How has learning the advanced features of git helped you to write software more effectively?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 22, 2009 at 03:21:26PM -0600, Tim Harper wrote:
> 
> Out of the shoot, you get a lot of value learning the basic features
> of git: easy branching, merging, etc.  How has learning the advanced
> features of git (bisect, rebase, rebase -i, add -p, etc.) helped you
> to write software more effectively?

Now I see what features you consider as "advanced", so I will try to
answer your question more directly this time:

- git bisect was useful for the obvious reason: it has saved time and
  efforts in finding some regression. It is especially true if the bug
  is a tricky one.

- I use 'rebase -i' to clean up patches before publishing. When I work
  on some feature, I can focus on it without being distracted some minor
  unimportant details, but then I can take a second look at what I did
  and clean up things a bit before publishing. So, my code is cleaner
  and easy to review.

- 'add -p' is about splitting changes to meaningful patches. Sometimes,
  when you are working on something, you may want to correct another
  minor problem that you came across, but commiting two completely different
  changes as a single patch is not a very good idea.

- 'rebase' can be *sometimes* useful, but it is not something that I
  will recommend to do often and without thinking. Some people really
  like to have linear story, so they tend to abuse this command, but
  'rebase' is re-writing of history, and it means that the original
  history gets lost. OTOH, if you use git-svn, then you do not have much
  choice but to keep it linear....

In any case, I believe that the basic ideas about Git should be learned
first and some advanced features can be learned later when one needs them.


Dmitry
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]