Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Git username/password in Codespaces #4

Open
maresb opened this issue Aug 21, 2022 · 0 comments
Open

No Git username/password in Codespaces #4

maresb opened this issue Aug 21, 2022 · 0 comments

Comments

@maresb
Copy link
Collaborator

maresb commented Aug 21, 2022

Does anyone know if Codespaces has any way of communicating your name and e-mail so that it doesn't have to be configured every time?

When I run VS Code as an application, it always seamlessly forwards my local credentials, including my GPG key.

(base) mambauser@codespaces-305e2e:/workspaces/micromamba-devcontainer-example$ git commit -m "aowfeij" --allow-empty
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'mambauser@codespaces-305e2e.(none)')

After briefly looking around, I see the environment variable GITHUB_USER=maresb, but that's not enough. I also see VSCODE_GIT_IPC_HANDLE=/tmp/vscode-git-db9813fb72.sock but I can't find any docs about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant