It feels very cumbersome to enter the user name and password for each operation. The solution is to open the config file under .git in the local project folder and
add :
[credential]
helper = store
After entering the username and password again, you can save it.