git config --global --get user.emailYou can update the email/name by using the below.
git config --global --get user.name
git config --global user.email global@email.comNote: The global config file can be found in the home directory: ~/.gitconfig
git config --global user.name "This is global"
Switch into a repository. Running the below will return the email/name that is used by that repository.
git config --get user.emailThe repository will used the global email/name. In order to use a different email/name for this repository, you can use the below to change it.
git config --get user.name
git config user.email local@email.comThe email/name will be stored in your repository's config: path_to_repository/.git/config You can also manually update this by adding the below directly into path_to_repository/.git/config
git config user.name "This is local"
[user]
name = "This is local"
email = local@email.com
No comments:
Post a Comment