赞
踩
方法一:在 URL 中嵌入用户名和密码
git clone https://username:password@hostname/path/to/repository.git
例如:
git clone https://myusername:mypassword@github.com/user/repo.git