>>> "PO" == Philip Oakley <[email protected]> writes: HI Philip
> Hi Uwe,
[Snip]...
> So in Git, you can add 'everything', a few things, or even pick lines from
> files, for each commit, leaving the worktree (real filesystem content)
> distinct from the 'staging area/index' (equivalent to the old fashioned
> outbox on your desk-top ready to summon a clerk to 'file'[commit] it's
> contents).
> It's disadvantage is that most modern folks don't have the mental model or
> imagery in their heads to know what to do, and the Git documentation is
> very poor at describing these mental model things.
Tanks for the detailed answer. Let me try to reword it.
1. I have a registered file in git.
2. I do a lot of changes in different lines.
3. So I can commit either all of them or just some parts.
4. The command git add . Tells git to use them all,
5. then git commit -m "my changes" will in fact commit them all. Is this
correct?
If so I must say that the wording is not optimal. I thought add is for
adding files not commits.
Mercurial has the same behavior, as the one described above, only the other way
around.
hg commit -m "my changes"
will per default commit everything. If I want to pick only some
changes I have to run
hg commit -i
Uwe
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/git-users/87tv6xk49w.fsf%40mat.ucm.es.
smime.p7s
Description: S/MIME cryptographic signature
