was replaced by: git checkout refs/branch-heads/xyzw
I tried both and none of them worked, as shown below:
git checkout -b my_branch refs/remotes/branch-heads/6367
fatal: 'refs/remotes/branch-heads/6367' is not a commit and a branch 'my_branch' cannot be created from it
git checkout refs/branch-heads/6367
error: pathspec 'refs/branch-heads/6367' did not match any file(s) known to git
I checked the available branches:
git branch -a
* (HEAD detached at e99622c238)
remotes/origin/main
Then updated with: git fetch --all
leading to a whopping 10GB download!
and checked again:
git branch -a
* (HEAD detached at e99622c2387d)
remotes/origin/ignore/bar
remotes/origin/ignore/foo
remotes/origin/infra/config
remotes/origin/lkgr
remotes/origin/lkgr-android-internal
remotes/origin/lkgr-ios-internal
remotes/origin/main
Despite all these, I still got the same errors.
Any suggestions?
Thanks.
Leon