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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Sunday, September 7, 2008 - 1: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, 7:07 am)
Re: Git User's Survey 2008 partial summary, Shawn O. Pearce, (Wed Sep 3, 7:45 am)
Re: Git User's Survey 2008 partial summary, David Brown, (Wed Sep 3, 8:00 am)
Re: Git User's Survey 2008 partial summary, H.Merijn Brand, (Wed Sep 3, 8:20 am)
Re: Git User's Survey 2008 partial summary, Scott Chacon, (Wed Sep 3, 8:41 am)
Re: Git User's Survey 2008 partial summary, Jakub Narebski, (Wed Sep 3, 9:00 am)
Re: Git User's Survey 2008 partial summary, Felipe Contreras, (Wed Sep 3, 9:25 am)
Re: Git User's Survey 2008 partial summary, David Aguilar, (Wed Sep 3, 7:43 pm)
Re: Git User's Survey 2008 partial summary, part 2, Jakub Narebski, (Thu Sep 4, 6:23 am)
Re: Git User's Survey 2008 partial summary, Jan Hudec, (Fri Sep 5, 3:17 pm)
Git User's Survey 2008 partial summary, part 3, Jakub Narebski, (Fri Sep 5, 7:22 pm)
Re: Git User's Survey 2008 partial summary, David Aguilar, (Fri Sep 5, 9:17 pm)
Re: Git User's Survey 2008 partial summary, part 3, Shawn O. Pearce, (Fri Sep 5, 10:15 pm)
Re: Git User's Survey 2008 partial summary, part 3, Andreas Ericsson, (Sat Sep 6, 1:27 am)
Re: Git User's Survey 2008 partial summary, part 4 - how d ..., Andreas Ericsson, (Sun Sep 7, 1:31 am)
Re: Git User's Survey 2008 partial summary, part 3, Jonas Fonseca, (Sun Sep 7, 4:07 pm)
Re: Git User's Survey 2008 partial summary, part 3, Shawn O. Pearce, (Sun Sep 7, 4:47 pm)
Git User's Survey 2008 partial summary, part 5 - other SCM, Jakub Narebski, (Thu Sep 11, 1:14 pm)
Re: Git User's Survey 2008 partial summary, part 5 - other SCM, Nguyen Thai Ngoc Duy, (Sun Sep 14, 3:45 am)
Re: Git User's Survey 2008 partial summary, part 5 - other SCM, Andreas Ericsson, (Mon Sep 15, 12:00 am)