only master branch in linux-official.git

232 views
Skip to first unread message

Sela Selah

unread,
Jan 14, 2014, 11:43:27 AM1/14/14
to loongs...@googlegroups.com
I exec the command:
git clone git://dev.lemote.com/linux-official.git
cd linux-official && git branch

there only master branch but I want to switch to the linux-3.6 branch.
any thing wrong?

Huacai Chen

unread,
Jan 14, 2014, 7:16:07 PM1/14/14
to loongs...@googlegroups.com
git checkout -b linux-3.6 origin/linux-3.6
> --
> You received this message because you are subscribed to the Google Groups
> "loongson-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to loongson-dev...@googlegroups.com.
> To post to this group, send email to loongs...@googlegroups.com.
> Visit this group at http://groups.google.com/group/loongson-dev.
> For more options, visit https://groups.google.com/groups/opt_out.

Sela Selah

unread,
Jan 20, 2014, 10:28:28 AM1/20/14
to loongs...@googlegroups.com
$ git checkout -b linux-3.6 origin/linux-3.6
fatal: Cannot update paths and switch to branch 'linux-3.6' at the same time.
Did you intend to checkout 'origin/linux-3.6' which can not be resolved as commit?
---------------------------------------------------------------------------------------------------------------
some information maybe useful
$ git remote show
origin

$ git remote show origin
* remote origin
  Fetch URL: git://dev.lemote.com/linux-official.git
  Push  URL: git://dev.lemote.com/linux-official.git
  HEAD branch: master
  Local ref configured for 'git push':
    master pushes to master (up to date)

$ git tag --list
(nothing)


在 2014年1月15日星期三UTC+8上午8时16分07秒,huacai写道:

Sela Selah

unread,
Feb 17, 2014, 8:04:25 AM2/17/14
to loongs...@googlegroups.com
problem solved

this issus accure because of git shallow clone
use unshallowed option convert to full clone

在 2014年1月20日星期一UTC+8下午11时28分28秒,Sela Selah写道:
Reply all
Reply to author
Forward
0 new messages