일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AI
- DB
- Converting
- Paper
- GitLab
- KAKAO
- CUDA
- git
- docker
- list
- evaluation
- pytorch
- TORCH
- Linux
- LLM
- Python
- Container
- pandas
- judge
- format
- Database
- Laravel
- Windows
- Mac
- PostgreSQL
- file
- Package
- numpy
- Flask
- enV
Archives
- Today
- Total
Daily Develope
[Git] 오류 정리 본문
HTTP Basic: Access denied
ㅇ 증상 : git 접근 시 다음과 같은 오류 메시지 출력
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://...../gitlab/.../....git/'
ㅇ 해결 : credential 정보 삭제
sudo git config --system --unset credential.helper
'repo_name' does not appear to be a git repository
ㅇ 증상 : git의 repository를 찾지 못 함
'repo_name' does not appear to be a git repository
fatal: Could not read from remote repository.
ㅇ 해결 : git remote 재등록
# 1. 주소 확인
git remote -v
> origin https://github.com/my/git_repo.git (fetch)
> origin https://github.com/my/git_repo.git (push)
# 2. 기존 remote 삭제 (예_origin)
git remote remove origin
# 3. remote 재등록
git remote add origin https://github.com/my/git_repo.git
send-pack: unexpected disconnect while reading sideband packet
ㅇ 증상 : push 수행 중 오류 발생
ㅇ 해결 : push 발생 중 오류 메시지는 TRACE 환경변수를 설정해 출력할 수 있으며, 이로부터 문제를 찾아 해결할 수 있다. 아래에서는 TRACE 메시지 출력 방법과 업로드 중 buffer 크기 제한으로 발생하는 문제 해결 방법을 나타낸다.
- Trace 메시지 출력
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export CURL_VERBOSE=1
- 다시 push를 수행해 오류 확인
만약 출력 메시지가 다음과 같다면 버퍼를 늘려 해결할 수 있다. (경우에 따라 다른 문제일 수도 있음)
- 출력메시지 = error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
- 원인 = 수정된 파일이 많은 경우
- 해결 코드 = 버퍼 늘림
git config http.postBuffer 524288000
'Git' 카테고리의 다른 글
[Git] tag 정리 (0) | 2022.12.13 |
---|---|
[Git] add 응용/명령어 정리 (0) | 2022.06.29 |
[Git] .gitignore 작성 (0) | 2022.01.07 |
[Git] 기본 명령어 (init / Add / commit) (0) | 2022.01.07 |
[GitLab] YAML 파일 작성 예시 (Maven, JUnit 수행) (0) | 2022.01.07 |