git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how do I create a branch and push it so several developers can share work?
@ 2010-09-08 22:31 Robert Buck
  2010-09-08 22:40 ` Jacob Helwig
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Buck @ 2010-09-08 22:31 UTC (permalink / raw)
  To: git@vger.kernel.org List

We just switched over to git and also use gitolite.

To create a new branch and push it so a team of developers can
collaborate on that branch I performed the following commands:

Listed available tags:
git fetch --tags

Listed available branches, which for me only showed one, master:
git branch

Created the branch off the tag:
git branch fullers tagduvel

Checked out the branch to verify the contents:
git checkout fullers
...

Push the branch to the remote repository:
git push origin fullers

Now, when I clone the repository and list the branches I only see
'master'. If I list the branches with the -a option I see something I
did not anticipate:
git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/duvel
  remotes/origin/fullers
  remotes/origin/master

What I had expected was a fullers branch.

So apparently I did something very wrong here. What did I do wrong?

Thanks,

Bob

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

end of thread, other threads:[~2010-09-09  5:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08 22:31 how do I create a branch and push it so several developers can share work? Robert Buck
2010-09-08 22:40 ` Jacob Helwig
2010-09-08 23:01   ` Robert Buck
2010-09-09  5:36     ` Miles Bader

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).