解决办法:使用SSH
Use SSH Instead of HTTPS:
Consider using SSH for your Git interactions instead of HTTPS. To set up SSH for GitHub, follow these steps:
Generate an SSH key pair if you don’t already have one.
Add your SSH public key to your GitHub account settings.
Update your Git remote URL to use SSH:
git remote set-url origin git@github.com:username/repo.git
Replace username
with your GitHub username and repo
with your repository name.