우분투 git clone + branch 오류 해결

한량·2021년 11월 10일
0
  1. 서버에서 ubuntu로 외부 private repo를 git clone하려고 했는데 폴더만 만들어지고 반응이 없음

1-1. 내 개인 repo는 잘 불러와짐
1-2. 로컬에서 private repo 잘 불러와짐

--> 서버 authentication 문제!


  1. sudo git clone '레포지토리 주소'로 해결

2-1. git 인증에서 비밀번호 입력시 실패

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

2-2. 깃 토큰 인증으로 해결

참고: https://amkorousagi-money.tistory.com/entry/Git-personal-access-token


  1. git clone하고 나서 내 branch를 들어가려 하니까
fatal: Unable to create '/home/ubuntu/nunbody_segmentation/.git/index.lock': Permission denied

라고 하면서 fatal error가 뜸

3-1. 해당 repo의 .git의 권한 변경

  • 해당 repo 폴더 자체의 권한 변경
  • sudo chown -R <owner>:<group> .git
  • sudo chmod -R 775 .git

참고: https://stackoverflow.com/questions/14127255/remove-git-index-lock-permission-denied

profile
놀고 먹으면서 개발하기

0개의 댓글