Hey, it's because a remote branch.  git checkout -b develop origin/develop

On Fri, Aug 9, 2019, 15:38 Sharan Basappa <sharan.basa...@gmail.com> wrote:

> So, I cloned a new repo
> I checked out a branch - something like git checkout develop (where
> develop is the branch name)
>
> Git completed this with the following message:
>
> Checking out files: 100% (2436/2436), done.
> Note: checking out 'develop'.
> You are in 'detached HEAD' state. You can look around, make experimental
> changes and commit them, and you can discard any commits you make in this
> state without impacting any branches by performing another checkout.
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>   git checkout -b new_branch_name
> HEAD is now at 923bf87... Removing RRT (open source) files for delivery to
> customer. Corresponding changes in nightly regression script. Revert to
> earlier version of Tb_Gen.pm (no uvm if changes)
>
> I am checking the current branch as follows:
> [sharanb@clnx1 verifast]$ git branch
> * (no branch)
>   master
> [sharanb@clnx1 verifast]$
>
> When I list the branches - git branch -r, I get the following:
>
>   origin/HEAD -> origin/master
>   origin/develop
>   origin/develop_easel_intel
>   origin/master
>
> I can see develop branch. I am not sure why it fails to checkout.
> Any idea what is wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-users/579f4af2-b4a7-44b8-9447-29a2b1dc9c16%40googlegroups.com
> <https://groups.google.com/d/msgid/git-users/579f4af2-b4a7-44b8-9447-29a2b1dc9c16%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CAErL4ggDqfmE-QXfRuAQSWXA1wjuUQgtrqR5ctxQfSx6WmA-Bg%40mail.gmail.com.

Reply via email to