I suggest you work through the example again using something like gitk.
That will show you what branches there are and show you the difference
between the local and remote branches of the same name. Using gitk between
operations is highly instructive as you learn to use git.


Forget all you know about SVN branches. With git you want a completely
different mindset. Under git branches are "free" and yout should (almost)
always do your development in a branch then merge it.




On Sat, Oct 19, 2013 at 4:05 PM, Felipe Contreras <
felipe.contre...@gmail.com> wrote:

> On Fri, Oct 18, 2013 at 9:57 PM, Blake McBride <blake1...@gmail.com>
> wrote:
> > Thank you very much for the help!  I have that book.  I think I'll some
> > reading.  My mind is so SVN oriented that when I read the books I keep
> > thinking 'but how would I do x?  y?  Z?'  Perhaps x, y, and z don't make
> > sense with this new model.
>
> In my opinion Subversion and Git are so different it's not helpful to
> think on those terms. Yes, some commands are equivalent, but many
> others seem similar but do drastically different things.
>
> > From what you are saying, I gather that branches created remotely are
> kept
> > noted as such (even though I have a local copy).  When I check the branch
> > out, it becomes a totally new local branch.
>
> Not exactly. 'git checkout origin/foo' is how you checkout a remote
> branch, but that sends to a kind of limbo called a detached HEAD,
> which means you are in no branch, you are in a commit, and more often
> than not that's not what you want. 'git checkout foo' will checkout
> the local branch 'foo', if there's no local branch with that name it
> finds out if there's a remote branch with that name that would make
> sense to checkout, and will replace that command with 'git checkout -b
> foo origin/foo' (create a new branch 'foo' from the starting point
> 'origin/foo')
>
> --
> Felipe Contreras
>
> --
> 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 git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to