I maintain my private repo A
and have its clone locally. Within it I cloned my friend's repo B
as using git clone
. Then, I added it as a submodule using
git submodule add ...
To which I got
B already exists in the index
Now, I wish to push it to my repo A
and so, I cd
into B
and commit+push. But I get permission issues:
remote: Permission to myFriend/B.git denied to me.
fatal: unable to access 'https://github.com/myFriend/B.git/': The requested URL returned error: 403
What am I doing wrong even after following this answer