[cmake-developers] git push ?

David Cole david.cole at kitware.com
Mon Jun 14 13:19:21 EDT 2010


The first time you need to checkout next, you should do:

git checkout -b next origin/next

which will set it up as a local branch that tracks the remote
'origin/next' branch...


On Mon, Jun 14, 2010 at 1:10 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> Hi there,
>
>  I discover that one should not follow instruction from:
> http://www.cmake.org/Wiki/CMake/Git#Publishing (which is linked from
> the main cmake.org page), but instead should follow:
> http://public.kitware.com/Wiki/Git/Workflow/Topic
>
>  Is that right ? If so could someone please let me know what is wrong
> the sequence of commands:
>
>
>  git clone git://cmake.org/cmake.git CMake
>  cd CMake
>  git checkout master
>  git pull
>  git checkout -b finddcmtk
>  cp ~/Perso/gdcm/trunk/CMake/FindDCMTK.cmake Modules
>  git add -- Modules/FindDCMTK.cmake
>  git commit
>  git checkout next
> error: pathspec 'next' did not match any file(s) known to git.
>
> Thanks
> --
> Mathieu
> _______________________________________________
> cmake-developers mailing list
> cmake-developers at cmake.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>



More information about the cmake-developers mailing list