2009/3/27 James Byrne <[email protected]>

>
> I think that I may see where I went wrong.  Regardless of which named
> branch I am on, git automatically puts any changes that I make into what
> is effectively an anonymous working copy branch, where they remain until
> they are added to a branch's future commit set.  Is this correct?
> --


Not really, they are not on a branch, your working copy is just a set of
files in your folders.  When you switch branches git overwrites them with
the version from the repository for that branch, unless they have been
modified but not committed, in which case it does not overwrite them.
The git repository contains all the versions of all the files on all the
branches and when you checkout it copies the appropriate versions into your
local folders (but not overwriting modified files as we have seen).  A
commit copies files that you have modified and marked for commit into the
repository (on the appropriate branch).

There are a number of good git tutorials on the web, google will find them.
Perhaps looking at some of those would help to get the concepts sorted.  It
all seems a bit complex at first but once you have played with it for a
while you will wonder how life managed without it.


>
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to