Git still needs to enter the user name and password after configuring the public key

step 1:
[root@web01 ~/data]#git remote-v
execute the above command to see if the following address is an HTTPS address beginning with HTTPS
step 2:
execute git remote set-url origin and SSH address

additional:

Read More: