把https模式换成ssh
用git remote -v查看使用的是https还是ssh等$ git remote -v
> origin https://github.com/USERNAME/REPOSITORY.git (fetch)
> origin https://github.com/USERNAME/REPOSITORY.git (push)
使用git remote set-url命令将远程URL从HTTPS更改为SSH
$ git remote set-url origin [email protected]:USERNAME/REPOSITORY.git
然后进行推送等操作吧
转载 https://www.cnblogs.com/YLJ666/p/14075541.html
标签:origin,...,git,remote,gitee,https,com From: https://www.cnblogs.com/rxbook/p/17387985.html