项目中常常会遇到http 的git 协议为了安全切换成ssh 的git 协议。git
这个时候,只要使用以下命令变动 remote 字符串就行了。安全
git remote set-url origin git://sfasdfasdfa.gitssh