I can push to the repository the codespace belongs to normally, but cannot push to the
repository of submodule.
Step to reproduce
In case I have a codespace launched from
a submodule of the repository
sarisia-org/submod checked out to
- move to
$ cd submod
- leave detatched HEAD by checking out
$ git checkout master
- do something, then commit
$ touch testfile $ git add testfile $ git commit -m "add testfile"
- push fails
$ git push remote: Permission to sarisia-org/submod.git denied to sarisia. fatal: unable to access 'https://github.com/sarisia-org/submod.git/': The requested URL returned error: 403
I think I can do workaround by setting
credential.helper=store and provide my personal access
token to git, but doing this every time creating the codespace is really painful, so it’s wonderful
if I can use the credential provided by default to push to submodules.