git 修改remote url

 git remote rm origin
git remote add origin [email protected]:UserName/Repository.git

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

猜你喜欢

转载自www.cnblogs.com/walnuttree/p/10837093.html