일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- wrap
- AppleSilicon
- AppBar
- TextField
- visualstudiocode
- 카카오
- 데스크테리어
- 데스크셋업
- 내돈내산
- 라이언
- listview
- sqflite
- xcode
- ios
- VSCode
- list
- 춘식
- error
- Flutter
- GitHub
- M1
- datetime
- Android
- react
- database
- GetX
- Git
- 간단리뷰
- 플러터
- swift
- Today
- Total
welcome to my blog
git clone 에러 본문
git clone 관련 에러 정리
1. git clone 을 하려고 github에서 https 주소를 복사한다음
git clone [주소] 명령어를 실행했을 때
not found ~~ error 발생
=> git clone https://[사용자이름]@주소
해주면 해결됨
이전에 다른 아이디로 git을 등록한 경우 발생할 수도 있다고 함
2. 1번과 같이 실행하면 git 비밀번호를 입력하라고 함
비밀번호를 입력하면 personal access token을 사용하라면서 error가 뜸
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.
=> personal token 생성해주기
2021.11.25 - [분류 전체보기] - git repository 등록시 참고사항
3. personal token만 생성해주면 알아서 해결될 줄 알았더니 안됨
2번과 같은에러가 계속 발생함
=> mac의 키체인 접근 메뉴에 들어가서 github.com 으로 검색한 결과를 모두 삭제해주었음(수정하는 방법도있겠지만 나는 그냥 다 삭제해버림)
그다음 다음 명령어를 실행
git config --global credential.helper osxkeychain
git config --global credential.helper
//결과 : osxkeychain
결과가 잘 나왔다면
git credential-osxkeychain store
명령어를 치고 엔터 한번
host=github.com
protocol=https
username=깃허브메일주소
password=발급받은키체인번호
한줄씩 엔터 치면서 입력해주고
마지막에 엔터 두번쳐주고 마무리
이제 1번에서 실행했던 명령어대로 다시 해주면
clone이 잘 된다.
[최종 정리]
1. personal git token 발급
2. credential.helper에 keychain 등록하기
3. git clone https://[사용자id]:github나머지주소
아주 잘 정리가 된 블로그 :