zoukankan      html  css  js  c++  java
  • git简易操作

    git config --global user.name 'scales'
    git config --global user.email "1477835701@qq.com"
    ssh-keygen -t rsa -C "1477835701@qq.com"

    cd e:
    mkdir www
    cd  www
    mkdir myGit
    cd myGit
    pwd
    git init
    

    第二步:

    • 登录github,打开settings中的SSH Keys页面,然后点击Add SSH Key,填上任意title,在Key文本框里黏贴id_rsa.pub文件的内容。

    • 点击 Add Key,你就应该可以看到已经添加的key。

    添加远程库

     

    • 首先,登录github上,然后在右上角找到create a new repo创建一个新的仓库。

    • Repository name填入testgit,其他保持默认设置,点击Create repository按钮,就成功地创建了一个新的Git仓库:

    • 目前,在GitHub上的这个testgit仓库还是空的,GitHub告诉我们,可以从这个仓库克隆出新的仓库,也可以把一个已有的本地仓库与之关联,然后,把本地仓库的内容推送到GitHub仓库。

    • 现在,我们根据GitHub的提示,在本地的testgit仓库下运行命令:

    • git remote add origin https://github.com/ColinScales/wechat.git git remote rm origin https不好用可以替换成SSH试一试

    • git add README.md

    • git commit -m 'README.md提交'

    • git push -u origin master

    • git clone https://github.com/ColinScales/wechat.git

    异乡小龟
  • 相关阅读:
    js 实现继承的6种方式(逐渐优化)
    http2.0 特性
    http 206请求
    http put post请求区别
    stopPropagation 和stopImmediatePropagation区别
    JavaScript事件流
    BFC特性 形成BFC
    元素高度、宽度获取 style currentStyle getComputedStyle getBoundingClientRect
    三栏布局解决方案
    jquery vue 框架区别
  • 原文地址:https://www.cnblogs.com/scale/p/6218920.html
Copyright © 2011-2022 走看看