OnePlusOSS / android_kernel_oneplus_msm8998

Other
141 stars 105 forks source link

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

Closed HHPLow closed 7 years ago

HHPLow commented 7 years ago

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

aaronqiuchiu commented 7 years ago

@xiaodiandi what can i help you ?

HHPLow commented 7 years ago

@aaronqiuchiu
I git clone the code done, git notice me that error remote HEAD refers to nonexistent ref, unable to checkout, and use ls -l only can see the .git and no code .So I find this solution to checkout the code.

Usually when I git clone the git done from github , the code will show in dir. but this not show in dir, must manual use $git checkout remotes/origin/oneplus/QC8998_N_7.1 -b NameYouWant to checkouot the code.

Is there something wrong? Thanks.

aaronqiuchiu commented 7 years ago

@XiaoDianDi we have fix this issue, please try again git clone https://github.com/OnePlusOSS/android_kernel_oneplus_msm8998.git

Thanks

darshan1205 commented 7 years ago

@aaronqiuchiu can't find any update though :\

aaronqiuchiu commented 7 years ago

@darshan1205 could you try git clone https://github.com/OnePlusOSS/android_kernel_oneplus_msm8998.git this again and still have problem ?

HHPLow commented 7 years ago

@aaronqiuchiu

$ git clone https://github.com/OnePlusOSS/android_kernel_oneplus_msm8998.git
Cloning into 'android_kernel_oneplus_msm8998'...
remote: Counting objects: 4652724, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4652724 (delta 0), reused 0 (delta 0), pack-reused 4652721
Receiving objects: 100% (4652724/4652724), 840.58 MiB | 904 KiB/s, done.
Resolving deltas: 100% (3906782/3906782), done.

$ ls
android_kernel_oneplus_msm8998

$ git branch -a
* oneplus/QC8998_N_7.1
  remotes/origin/HEAD -> origin/oneplus/QC8998_N_7.1
  remotes/origin/oneplus/QC8998_N_7.1

Fixed, thanks.

aaronqiuchiu commented 7 years ago

^_^