I created a fork (let's call it myrepo
) of another repository (let's call it orirepo
) on GitHub. Later, I cloned orirepo
.
git clone https://github.com/original/orirepo.git
I modified about 20 files, then I staged my change and made a commit
git add
git commit
However, when I tried to push
git push
I got this error:
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
I know I made a mistake: I should have cloned my fork rather than orirepo
, but it's too late for that now.
How could I push to my fork rather than to origin/orirepo
, which I don't have write access to?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…