zoukankan      html  css  js  c++  java
  • git 和 github 链接

    第一步  再电脑上安装git 请自行搜索

        到你需要的一个目录下:例如/gittest

         首先创建文件,然后  git  add  和 git commit  不然直接查看  git branch -a 会报错。

           这个时候可以查看git 分支

     https://blog.csdn.net/north1989/article/details/53314222  

    [root@localhost git]# git  branch -a
    * master
    

      

    第二部:给自己的电脑git 设置cofig  

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

    这个的用处就是以后用来和hub链接要用的。

    第三部:生成ssh 密钥

    ssh-keygen -t rsa -C "you@example.com"

    第四部:打开/root/.ssh/id_rsa.pub. 一会复制自己的公钥到github

    现在到github上注册自己的用户名和账号

    找到--设置-SSH and GPG keys -- NEW SSH key

    将公钥输入进去即可。

    然后再github里面建立自己的仓库

    例如 我建立了一个 Aopplo

    我们去我们的电脑上找个目录运行下面的代码

    echo "# test" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin git@github.com:Xoodge/test.git  #将git目录和远程的链接起来
    git push -u origin master

     https://www.jianshu.com/p/b011f6769bdf

    git push -u origin master

    由于我的里面时空的所以会有 waring。

    现在就等于已经链接上了。

    https://www.cnblogs.com/woider/p/6533709.html

    https://blog.csdn.net/north1989/article/details/53314222、https://segmentfault.com/q/1010000006143098/a-1020000006143429

    https://www.cnblogs.com/woider/p/6533709.html

    https://blog.csdn.net/nerosolomon/article/details/79453485

  • 相关阅读:
    Openlayer 3 的画图测量面积
    Openlayer 3 的画线测量长度
    屏幕尺寸
    px和em,rem的区别
    水平和垂直居中
    Flex布局
    继承的几种方法及优缺点
    call ,apply 和 bind的用法与区别
    mybatis springmvc velocity的demo
    正则同时包含两个关键字
  • 原文地址:https://www.cnblogs.com/goodge/p/9497015.html
Copyright © 2011-2022 走看看