GitHub에서 다른 저장소 (예 : orirepo
)의 포크 (myrepo
)를 만들었습니다. 나중에 나는 orirepo
을 복제했다.원본 저장소의 복제본에서 내 포크를 어떻게 푸시 할 수 있습니까?
git clone https://github.com/original/orirepo.git
나는 그때 내가이 오류가 발생했습니다
git push
을 밀어하려고 할 때, 그러나
git add
git commit
커밋 내 변화를 개최하고 만든, 약 20 파일을 수정
remote: Permission to original/orirepo.git denied to mylogin.
fatal: unable to access 'https://github.com/original/orirepo.git/': The requested URL returned error: 403
내가 실수 한 것을 알고 있습니다. orirepo
보다는 포크를 복제해야했지만 지금은 너무 늦었습니다. 쓰기 권한이없는 origin/orirepo
이 아닌 내 포크로 어떻게 푸시 할 수 있습니까?
도 'git pull'의 기본 동작을 변경 -u' 밀어 'git됩니다에 변경 내용을 밀어 수 있습니다 ? – benroth
그렇습니다. 따라서 "push -u"를 수행하는 대신 pushDefault 옵션을 사용해야합니다. git config --add remote.origin.pushdefault myrepo 푸시에 영향을주고 기존의 모든 새로운 가지. –
'git remote set-url origin http : // github.com/myname/reponame'을 실행하고'git push origin mybranch'을 실행했습니다. 일했다! 고맙습니다! – Willmore