Skip to content

Instantly share code, notes, and snippets.

@polobo
polobo / github_windows_multiple_identity_configuration.md
Last active August 29, 2015 14:16
GitHub Windows Multiple Identity Configuration

First Pass, unedited. If anyone besides myself ends up reading this please leave a comment and I will apply some polish.

Even with the SSH configuratoin stuff below setup correctly you still need to put your identity into each project-level .git/config file and not rely on ~/.gitconfig. While obvious in hind-sight... The UI doesn't have an independment notion of identity and because you are working on a local clone does not use identity information associated with origin. This too makes sense as you are able to have multiple remotes associated with a given local repository. If you forget and notice a commit with bad author information you can use git commit --amend --reset-author - though it may be that a normal ammend with do this too...after you have added the [user] name & email variables to config.

C:/Users//.ssh/config - don't bother adding a config here...the one in /etc/ssh/ssh_config asserts host configuration precedence.