웹개발팁

[Git] git clone 할때 warning: remote HEAD refers to nonexistent ref, unable to checkout 오류날때

http://portfolio.wonpaper.net 2023. 7. 29. 00:05

 

1
2
3
4
5
6
7
8
9
10
$ git clone works0@works.cafe24app.com:works0_ibnetworks
Cloning into 'works0_works'...
Enter passphrase for key '/c/Users/wonpa/.ssh/id_rsa':
remote: Counting objects: 1099done.
remote: Compressing objects: 100% (904/904), done.
remote: Total 1099 (delta 182), reused 1017 (delta 154)
Receiving objects: 100% (1099/1099), 102.99 MiB | 9.25 MiB/s, done.
Resolving deltas: 100% (182/182), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout
 
cs

 

remote HEAD refers to nonexistent ref, unable to checkout   라고 오류메세지를 날리며, 다운이 안될때

 

branch명을 추가로 정확하게 덧붙여 주고 다시 시도해 보자.

 

git clone -b master <url> <dir>

 

git clone -b main <url> <dir>

 

참고 : https://heytech.tistory.com/289