zoukankan      html  css  js  c++  java
  • git 添加ssh的方法 push免登陆

    在github.com上 建立了一个小项目,可是在每次push  的时候,都要输入用户名和密码,很是麻烦

    原因是使用了https方式 push

    在termail里边 输入  git remote -v 

    可以看到形如一下的返回结果

    origin https://github.com/w2689385876/calenderQiandao.git (fetch)

    origin https://github.com/w2689385876/calenderQiandao.git (push)

    下面把它换成ssh方式的。

     

    1. git remote rm origin
    2. git remote add origin git@github.com:w2689385876/calenderQiandao.git
    3. git push origin 

  • 相关阅读:
    Redis
    Redis
    Redis
    linux 安装docker
    linux 安装nexus
    linux 安装jenkins
    linux 安装gitlab
    python 类的继承
    python raise & assert
    python super()
  • 原文地址:https://www.cnblogs.com/c-and-unity/p/4578599.html
Copyright © 2011-2022 走看看