git remote rm origin
git remote add origin git@github.com:UserName/Repository.git

由于之前添加的是http协议的github仓库地址,因此每次push 或者pull都需要密码,所以,将其修改为ssh协议的,这样,就不需要这么麻烦了。

相关文章:

  • 2021-08-08
  • 2021-12-01
  • 2021-12-29
  • 2021-05-06
  • 2021-12-28
  • 2022-12-23
  • 2021-10-13
  • 2021-10-20
猜你喜欢
  • 2022-01-17
  • 2021-08-29
  • 2021-10-19
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案