[git] 특정 git branch clone하는 법 + github token authentication

kyliecamila·2022년 2월 26일
0

Git/Github

목록 보기
2/2

특정 branch를 clone하는 법과 github token authenticatioin에 대해 정리해보자

방법

$ git clone -b <branch명> <remote_repo 주소>

branch명은 clone하고자 하는 branch이름

여기서는 feature/responsive

여기서 remote-repo주소란

초록색 Code 버튼 눌렀을때 나오는 주소

또 참고로 git clone할때 인증방법이 바뀌여서 authentication token을 만들어서 사용해야한다.

github token authentication

personal access token 생성방법

앞으로는 github에서 push 등의 작업을 수행할 떄,
PW를 입력하라고 뜨면 Personal Access Token을 복사해서 넣으면 된다.



참고자료
https://curryyou.tistory.com/344

0개의 댓글