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

  • 相关阅读:
    BZOJ2456
    BZOJ2648
    POJ1639
    LOJ6003
    LOJ6002
    LOJ6001
    LOJ116
    POJ2594
    BZOJ4554
    JS事件 加载事件(onload)注意:1. 加载页面时,触发onload事件,事件写在<body>标签内。 2. 此节的加载页面,可理解为打开一个新页面时。
  • 原文地址:https://www.cnblogs.com/goodge/p/9497015.html
Copyright © 2011-2022 走看看