How to set up my name and email locally in for a checked out git repo?
Sep 27, 2020
asked by anonymous
Question / Issue:
I have checked out Private Island and want to use different credentials for Git than I'm using globally. How do I set these?
> git clone https://mindchasers.com/repos/cgit.cgi/privateisland
Responses:
Date: Sept. 27, 2020
Author: Mind Chasers
Comment:
Showing on Windows 10 with "Git for Windows" (Linux/Mac are virtually the same):
> git clone https://mindchasers.com/repos/cgit.cgi/privateisland
Cloning into 'privateisland'...
> cd .\privateisland\
> git config --local user.name mindchasers
> git config --local user.email privateisland@mindchasers.com
> more .git/config
...
[user]
name = mindchasers
email = privateisland@mindchasers.com