check git username and password in terminal code example
Example: how to get git username and password
$ git config --global user.name "Mona Lisa"
$ git config --global user.name
$ mona
$ git config --global user.name "Mona Lisa"
$ git config --global user.name
$ mona