Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git cambiar pull https por ssh

1, Ver dirección actual
$ git remote -v
origin  https://github.com/lyuxiaomin/dubbo.git (fetch)
origin  https://github.com/lyuxiaomin/dubbo.git (push)

2,Cambiar dirección 
$ git remote set-url origin git@github.com:lyuxiaomin/dubbo.git

3, Ver la dirección modificada
$ git remote -v
origin  git@github.com:lyuxiaomin/dubbo.git (fetch)
origin  git@github.com:lyuxiaomin/dubbo.git (push)123456789101112
Source by programmerclick.com #
 
PREVIOUS NEXT
Tagged: #git #cambiar #pull #https #por #ssh
ADD COMMENT
Topic
Name
6+4 =