Error/Git - GitHub
--no-optional-locks push -v origin master:master remote: Permission to
dev?
2024. 12. 18. 11:04
반응형
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v origin master:master remote: Permission to 아이디/프로젝트명.git denied to 아이디. fatal: unable to access 'https://github.com/아이디/프로젝트.git/': The requested URL returned error: 403
[상황]
회사 계정으로 사용 중인 SourceTree에
개인 계정으로 생성한 Git 프로젝트를 SourceTree에 추가하여 개인 계정으로 연결된 Git 프로젝트에 PUSH를 하니 오류가 발생함.
[원인]
회사 계정이 개인 계정으로 만든 Git 프로젝트에 권한이 없어서 발생한 문제
[해결]
개인 계정으로 만든 프로젝트에 Collaborators로 회사 계정 추가
- 리포지토리 소유자에게 Collaborator로 추가해달라고 요청하세요.
- 소유자가 GitHub에서 다음 단계로 권한을 부여할 수 있습니다:
- 리포지토리 페이지에서 Settings > Collaborators and teams로 이동.
- Add collaborator를 클릭한 후 keji096 계정을 추가.
- 권한 초대 이메일을 수락하세요.
반응형