Skip to content

Instantly share code, notes, and snippets.

@npearce
Created June 3, 2020 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npearce/8dc007b9a0265bfea7fb87d487957874 to your computer and use it in GitHub Desktop.
Save npearce/8dc007b9a0265bfea7fb87d487957874 to your computer and use it in GitHub Desktop.
gitconfig setup for using different github accounts for repositories
# ~/.gitconfig
# `useHttpPath` tells git to match the ENTIRE path. It's all or none, baby.
[user]
name = <Your Name>
email = your.email@example.com
[credential]
useHttpPath = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment