Re: Git User's Survey 2008 partial summary, part 4 - how do we use Git

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>, Stephan Beyer <s-beyer@...>
Date: Sunday, September 7, 2008 - 4:31 am

Jakub Narebski wrote:

I believe people have finally gotten to grasp with the index. Besides,
those answers are probably a bit skewed, as people that use git as just
a faster and better cvs/svn aren't likely to be those who answer the
survey.


I know myself and most others where I work use it as a 'fixup' command.
One commit is done, the second is being staged (git add or git add -i),
while testing reveals some silly bug in one of the files from the last
commit. Assuming that file isn't touched again, it's easy to fix up
using "git commit --amend <file>", as that automatically sets up a new
index so that the staged changes remain staged.

The alternative would be to do a mixed reset, git add <file>, git commit
--amend. Not so sexy.


Perhaps many who use it don't know that they are. The "git sync"
alias is much in use where I work. It's basically just a
"git pull --rebase && git push". As it was suggested on the mailing
list and also listed in some tutorial somewhere (don't know where),
I can imagine quite a lot of people using it without realising it.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git User's Survey 2008 partial summary, Jakub Narebski, (Wed Sep 3, 10:07 am)
Git User's Survey 2008 partial summary, part 5 - other SCM, Jakub Narebski, (Thu Sep 11, 4:14 pm)
Re: Git User's Survey 2008 partial summary, part 5 - other SCM, Nguyen Thai Ngoc Duy, (Sun Sep 14, 6:45 am)
Re: Git User's Survey 2008 partial summary, part 4 - how do ..., Andreas Ericsson, (Sun Sep 7, 4:31 am)
Git User's Survey 2008 partial summary, part 3, Jakub Narebski, (Fri Sep 5, 10:22 pm)
Re: Git User's Survey 2008 partial summary, part 3, Shawn O. Pearce, (Sat Sep 6, 1:15 am)
Re: Git User's Survey 2008 partial summary, part 3, Jonas Fonseca, (Sun Sep 7, 7:07 pm)
Re: Git User's Survey 2008 partial summary, part 3, Shawn O. Pearce, (Sun Sep 7, 7:47 pm)
Re: Git User's Survey 2008 partial summary, part 3, Andreas Ericsson, (Sat Sep 6, 4:27 am)
Re: Git User's Survey 2008 partial summary, part 2, Jakub Narebski, (Thu Sep 4, 9:23 am)
Re: Git User's Survey 2008 partial summary, Scott Chacon, (Wed Sep 3, 11:41 am)
Re: Git User's Survey 2008 partial summary, Jakub Narebski, (Wed Sep 3, 12:00 pm)
Re: Git User's Survey 2008 partial summary, David Brown, (Wed Sep 3, 11:00 am)
Re: Git User's Survey 2008 partial summary, Shawn O. Pearce, (Wed Sep 3, 10:45 am)
Re: Git User's Survey 2008 partial summary, H.Merijn Brand, (Wed Sep 3, 11:20 am)
Re: Git User's Survey 2008 partial summary, Felipe Contreras, (Wed Sep 3, 12:25 pm)
Re: Git User's Survey 2008 partial summary, David Aguilar, (Wed Sep 3, 10:43 pm)
Re: Git User's Survey 2008 partial summary, Jan Hudec, (Fri Sep 5, 6:17 pm)
Re: Git User's Survey 2008 partial summary, David Aguilar, (Sat Sep 6, 12:17 am)