Configure git user information

Christopher Glikpo ⭐ - Nov 24 '22 - - Dev Community

Configures user information for git.

Use git config user.email <email> to set the user's email for the current repository.
Use git config user.name <name> to set the user's name for the current repository.
You can use the --global flag to configure global user information.

Shell


git config [--global] user.email <email>
git config [--global] user.name <name>
Enter fullscreen mode Exit fullscreen mode

Example

git config user.email "example@gmail.com"
git config user.name "Christopher Glikpo"
# Configures user for current repository

git config --global user.email "example@gmail.com"
git config --global user.name "Christopher Glikpo"
# Configures global git user
Enter fullscreen mode Exit fullscreen mode

Connect me on facebook

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player