On this page
Sometimes you want to use different Git users for different repositories on the same computer. This could be to separate personal projects with school projects or work projects. Navigate to the repository folder and type the following commands into terminal.
Global User
~$ git config --global user.name "username" ~$ git config --global user.email "name@email.com"
Local User
~$ git config --local user.name "username" ~$ git config --local user.email "name@email.com"
Linked Copy
~$ git config --worktree user.name "username" ~$ git config --worktree user.email "name@email.com"
No notes link to this note
This note does not link to other notes
(Last Modified:
)