GitHub: Separate credentials for two accounts on Windows

后端 未结 3 1760
忘掉有多难
忘掉有多难 2020-12-10 16:49

I recently created a second GitHub account two separate my work and my private projects (before, I only had the work account). I use https in combination with the Windows cr

3条回答
  •  感情败类
    2020-12-10 17:08

    You can set a user for that repository only by typing:

    git config --local user.name 'Full Name'

    git config --local user.email 'your@mail.com'

    This wont affect you other repositories.

提交回复
热议问题