Daftar git pengguna dan email
git config --global --get user.name
git config --global --get user.email
garzj
git config --global --get user.name
git config --global --get user.email
$ git config --global user.name
> "John Smith"
$ git config --global user.email
> "[email protected]"
if you have configured multiple git users in your machine
$ git config --global user.name ### It will give name of git user who is globaly scoped
$ git config user.name ### It will give name of git user who has scope with respect to current repository
git config user.name
git config user.email
git config --global user.name "My Name"
To know the username, type:
git config user.name
To know the email, type:
git config user.email
Just use --local instead of --global. In fact, local is the default so you can just do
git config --local user.email [email protected]
git config --local user.name "whatf hobbyist"
in one repo, and
git config --local user.email [email protected]
git config --local user.name "whatf at work"
in another