Skip to content

No Git username/password in Codespaces #4

Description

@maresb

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 "you@example.com"
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions