git/list[1] front-page[2] threads[3] people[4] search[5] about
 

how do I create a branch and push it so several developers can share work?

From
Robert Buck <buck.robert.j@gmail.com>
Date
Sep 8, 2010, 22:31 UTC
Message-ID
<AANLkTinO9TVyg6EBS1ZuQPS+VWxzODmLan0sDGzFw8eh@mail.gmail.com>
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
Next: Jacob Helwig
Message 1 of 4 in “how do I create a branch and push it so several developers can share work?”
  1. Robert BuckSep 8, 2010
  2. Jacob HelwigSep 8, 2010
  3. Robert BuckSep 8, 2010
  4. Miles BaderSep 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.