Re: a few beginner git questions
- From
- Thomas Anderson <zelnaga@gmail.com>
- Date
- Mar 7, 2010, 02:23 UTC
- Message-ID
- <15b345f1003061823u2d7edeeo25229f0a32456f45@mail.gmail.com>
- In-Reply-To
- <20100306070533.GL2480@ece.pdx.edu>
On Sat, Mar 6, 2010 at 1:05 AM, Tait <git.git@t41t.com> wrote:
Show 9 quoted lines
>> 1. When do you commit changes and when do you stage changes? Or maybe >> more to the point, what's the difference between doing "stage, commit, >> stage, commit" and "stage, stage, commit"? > > Staging changes is a prerequisite to committing them. With stage, commit, > stage, commit you will have two commits in history. With stage, stage, > commit you will have only one commit in history. What you stage (or > neglect to stage) is not part of recorded history in the repository. What > you commit, is.
What's the difference, then, between doing "stage, stage, commit" as opposed to "stage, commit"? Why not just make all commits stage automatically?