git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unable to checkout branches and proper procedure for creating a new  branch based off of another one
@ 2010-06-17  2:41 Thomas Anderson
  2010-06-17  3:32 ` Thomas Anderson
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Anderson @ 2010-06-17  2:41 UTC (permalink / raw)
  To: git

Say there's a Git repository with two branches: default (which is the
default branch) and branch.  I want to checkout branch and start
working on that but am unsure of how to do it.  Here are the commands
that I did:

git clone git@github.com:username/repo.git
cd repo
git checkout branch

But that gets me the following error:

fatal: Not a git repository (or any of the parent directories): .git

I do "git branch" and here's what I see:

* default

Where's "branch"?

And let's say I wanted to create my own branch based on "branch".
Let's say "branch-zelnaga".  How would I do that?  Do I just checkout
that branch, create a new branch while the current working directory
contains files from the desired branch and then push / commit as
appropriate?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-17  5:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17  2:41 unable to checkout branches and proper procedure for creating a new branch based off of another one Thomas Anderson
2010-06-17  3:32 ` Thomas Anderson
2010-06-17  3:44   ` Thomas Anderson
2010-06-17  5:04     ` Gabriel Filion

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).