2

I have successfully setup gitosis on my machine and I have my project safely on the gitosis server. It currently has no branches (just master). How do I add a branch to it? (I am not talking about the config of it, I can figure that out, but literally adding a branch)

Do I add a branch in my local repo and push? Do I do something in gitosis?

Cheers.

imz -- Ivan Zakharyaschev
  • 4,921
  • 6
  • 53
  • 104
mvilrokx
  • 1,588
  • 1
  • 16
  • 23
  • You should probably think about transitioning to using gitolite instead of of gitosis. Gitosis's maintainer seems to have lost interest a while ago, whereas gitolite is actively developed and supported. – Phil Miller Jan 26 '11 at 22:26
  • 1
    If gitosis does what s/he needs, why switch? It's very unlikely to be broken by anything git does. – ebneter Jan 27 '11 at 03:16

1 Answers1

5

You create a local branch with:

git branch branch_name

and then you tell the remote you have a new branch with:

git push origin branch_name
nunopolonia
  • 14,157
  • 3
  • 26
  • 29