Skip to content

git clone https url , show warning: remote HEAD refers to nonexistent ref, unable to checkout. #2

@HHPLow

Description

@HHPLow

You need use
$git branch -a
show all remote branch, and you can see
remotes/origin/oneplus/QC8998_N_7.1
then
$git checkout remotes/origin/oneplus/QC8998_N_7.1 -b NameYouWant
now you can see the code.
Maybe it's very easy to find the answer. XD.
Find from stackoverflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions