Skip to content

Per-repository identity and multiple git accounts #233

Description

@jonassaa

There is no way to see or change which identity a commit is made with, and no
support for using different identities in different repositories.

"Manage multiple accounts" is
GitHub Desktop's second-most-reacted issue of all time
at 1,365 reactions — behind only "GitHub Desktop for Linux?". The use case is
mundane and extremely common: a work identity and a personal identity on the same
machine, and the cost of getting it wrong is a commit pushed to a public repo with
a corporate email in it, which is unfixable after the fact.

Where we are today

How

  • Show the identity. The commit panel should name the identity the commit will
    be made with, resolved the way git resolves it. This alone prevents most of the
    damage.
  • Set it, at both scopes. Edit user.name / user.email for the current
    repository (--local) or globally, from Settings and from the commit panel's
    identity affordance. Making the scope explicit in the UI is the point — a lot of
    the confusion here is users not knowing which scope they are editing.
  • Named identities. A small set of saved identities (label, name, email,
    optionally a signing key) and a per-repository choice of which one applies.
    Persisted in our own settings, not in git config, with the chosen one written to
    the repo's local config so the CLI agrees with us.
  • Tie in signing. signCommits is already tri-state per Design & UX review: tree view, visual polish, app flow + feature gaps vs Fork/GitKraken/Sublime Merge/IntelliJ/TortoiseGit #61 D6; a signing key
    belongs to an identity, so the identity is the natural place to hang it.
  • Related, and cheap once identities exist:
    default editor per repository
    (55 reactions) is the same "per-repo override" shape.

Not a duplicate of

From the competitor research sweep (Aug 2026).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commitStaging, commit panel, message, identity, hooks, signingarea:settingsPreferences and how they persistenhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions