how to set git username and password in terminal code example
Example 1: how to change username and password in git
# change the whole things in one go
git config --global credential.helper cache # to enable credentail helper
git config --global --edit
Example 2: save account to git
git config --global credential.helper store