Git: Stage into Commit, what is the right workflow?

Posted by Lukasz Lew on Stack Overflow See other posts from Stack Overflow or by Lukasz Lew
Published on 2010-04-17T14:53:09Z Indexed on 2010/04/17 16:43 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

I just created a big piece of code I want to commit in several separate commits.
So I can stage relevant parts, commit, stage, commit, ... and so on until I have all my changes commited.

The missing part is how can I test whether I split the commit correcty.
I.e. whether the part that is in staging area at least compiles?

To do that I must somehow bring my work tree to be in sync with index (staging area) without losing the changes to be committed later.

What is the right way to do it?
What is the quickest way to do it?

Update:
How to do it with magit?

© Stack Overflow or respective owner

Related posts about git

Related posts about commit