28 May
2010
28 May
'10
8:52 p.m.
On 2010-05-28 at 13:24 -0700, Justin Davis wrote:
Is there a reason not to just use 'git checkout "$_gitbranch"' instead?
By default git-clone only creates a remote tracking branch for master or whichever branch is specified with the `-b` option. Thus you either have to checkout the branch from the remote, which defaults to "origin", or tell git to setup with the desired branch right from the beginning using: git clone -b "$_gitbranch" "$_gitname" "$_gitroot" Then additional checkout of $_gitbranch isn't needed.