[Git] Repository/Remote 두 개 이상 연결하기
·
개발 (Development)/Git
git remote -v 1. 첫 번째 원격 저장소 추가 git remote add origin [repository 주소] 여기서 origin의 의미는 저장할 곳의 alias를 origin으로 설정한다는 뜻이다. 2. 두 번째 원격 저장소 추가 git remote add github [repository 주소] 프로젝트의 첫 번째 원격 저장소가 github가 아닌 다른 곳에 올라가 있는 경우이므로 두 번째 원격 저장소의 별칭을 github로 저장했다. 3. git remote -v git remote -v 위의 명령어로 확인하면 origin, github 2개의 원격 저장소를 확인할 수 있다. (fetch를 포함하면 총 4개) 4. 2개의 remote에 각각 push # add & commit git ..
[Git] Github Error - remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
·
개발 (Development)/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.fatal: Authentication failed for '(push할 Repository 주소)' git push -u origin main 명령어를 입력했는데, 실패했다. 인증 방식이 바뀌어 기존에 비밀번호로 접근하는 방식 대신 토큰으로 접근해야한다. 해결 방법Gi..
[Git] Github Error - remote: Permission to '(github repository 주소)' denied to '(현재 사용자 계정)' fatal: unable to access '(github repository 주소)': The requested URL returned error: 403
·
개발 (Development)/Git
문제점깃허브에 연습 코드를 push 하려는데remote: Permission to '(github repository 주소)' denied to '(현재 사용자 계정)'fatal: unable to access '(github repository 주소)': The requested URL returned error: 403위와 같은 에러가 발생했다. A라는 github 아이디로 '최초' 글로벌 유저를 등록 후 B라는 github 아이디로 git push를 하게 되면 기존에 최초 등록한 A 아이디를 요구하기 때문에 에러가 발생한다. 해결방법컴퓨터의 git 사용자 정보를 변경해야한다.제어판 사용자 계정 -> 자격 증명 관리자 -> Windows 일반 자격 증명에서 guthub 정보 편집정보 편집 후 push..