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