회사를 다니면서 겪었던 기타 작은 에러들
fatal: repository 'http://gitlab-dev.epiclive-platform.com/wonn/leadership-concert.git/' not found
상황 : 한 프로젝트(github, gitlab 등)에서 여러 사람(여러 아이디)이 같이 작업 중 레파지토리 클론 했더니 오류 발생
문제 : 프로젝트를 찾지 못하는 문제 발생 private repository여서 찾지 못하고 있다.
PC에 있는 로컬 클라이언트 git 자격 증명 캐싱 문제이다.
git clone --global user.name
git clone --global user.email
글로벌로 자격증명이 되어 있어서 찾기 못한다.
해결방법 : URL(HTTP)로 클론할 때 ID를 추가해서 클론하면 자격증명을 다시 할 수 있다.
기존 형태 : https://gitlab.com/{userID}/{repoName}.git
ID추가 형태 : https://{userID}@gitlab.com/{userID}/{repoName}.git
fatal: Authentication failed for 'http://gitlab-dev.epiclive-platform.com/jonghyun/leadership-concert.git/'
문제 : 인증과 관련된 문제로 접근이 불가능하다는 의미이다. (접근 거부 오류 발생)
해결방법 : git bash를 관리자 권한으로 실행한다.
$ git config --system --unset credential.helper
위 명령어 입력 (계정정보 패스워트 설정을 초기화 하는 명령어 -> 다시입력하기 위해서)
Cmd창에서 다시 클론 시도
Username for 'http://gitlab-dev.epiclive-platform.com':
Password for 'http://[email protected]@gitlab-dev.epiclive-platform.com':
이렇게 유저이름과 비밀번호를 다시 물어본다.
Username : email
Password : 비밀번호
입력
이렇게 할경우 클론, 푸쉬 풀 할때마다 계속 물어본다.
$ git config credential.helper store
위 명령어를 입력하면 한 번 인증 후 다시 물어보지 않는다.
$ git config credential.helper store 로 계정을 저장하면 계속 권한관련
remote: You are not allowed to upload code.
fatal: unable to access 'http://gitlab-dev.epiclive-platform.com/wonn/leadership-concert.git/': The requested URL returned error: 403
에러 발생 함
그냥 저장하지 않고 사용하자
기존 js에서는 줄바꿈을 할때 \n이나 <br/> 를 사용하거나
``(백틱)내에서 줄바꿈을해서 사용한다
하지만 react에서는 적용이 안된다.
Ex) '이 부분에서 개행이 \n 필요하다!!'
Ex) ` 백틱을 사용해 보자
여전히 적용 안된다.`