Skip to content

Unable to git push project created in Codespaces #27769

Answered by jshorty
valhuber asked this question in Codespaces
Discussion options

You must be logged in to vote

👋 Hello from the Codespaces team! This is expected behavior at the moment, so not a cockpit error 😄. By default the token your codespace uses to authenticate requests to GitHub is scoped only to repository that it's created with— and so will be forbidden to write to the remote you've set up for your newer repository from within the codespace.

Here is the recommended path for expanding the permissions of a codespace to include other repositories:
https://docs.github.com/en/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces

This flips the steps you've documented around, however— it would require you to set up the remote GitHub repo before spinning up the othe…

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jdevfullstack
Comment options

Comment options

You must be logged in to vote
1 reply
@jdevfullstack
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@anaisbetts
Comment options

@ozyman42
Comment options

@ozyman42
Comment options

@sarath49
Comment options

@sarath49
Comment options

Answer selected by otter-computer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Product Feedback
7 participants