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写道: > > $ 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写道: >> >> git checkout -b linux-3.6 origin/linux-3.6 >> >> On Wed, Jan 15, 2014 at 12:43 AM, Sela Selah <selah...@gmail.com> wrote: >> > 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? >> > >> > -- >> > 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. >> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to loongson-dev@googlegroups.com. Visit this group at http://groups.google.com/group/loongson-dev. For more options, visit https://groups.google.com/groups/opt_out.