Can't checkout branch
- From
Larry Martell <larry.martell@gmail.com>
- Date
- Jul 14, 2020, 16:59 UTC
- Message-ID
- <CACwCsY7P5NiQL5ajHMOWo2EPiQZKUj_m_AVbtGy=z=twChimjw@mail.gmail.com>
- In-Reply-To
- <CACwCsY7YSn_mbtFv3QjL5dY80G6e_r-gGC3SGo5rO5b8LGXxVA@mail.gmail.com>
Been using git for a long time, first time I have seen this. I am unable to checkout a branch.
$ git status # On branch master nothing to commit, working directory clean
$ git fetch --all Fetching origin * [new branch] deploy -> origin/deploy
$ git checkout deploy $ git branch * master
$ git checkout origin/deploy Note: checking out 'origin/deploy'.
You are in 'detached HEAD' state.
I tried deleting the local repo and recloning, but I got the same results. I see the branch on github. I can checkout other branches, just not this one.
What could be going on?