把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 git@github.com:USERNAME/REPOSITORY.git
然后進行推送等操作吧