zoukankan      html  css  js  c++  java
  • GitHub Linux下使用方法

    1. 在网站注册帐号,创建工程 test 进入工程,右下角会有一个项目仓库的地址。https://github.com/braverior/test.git

    2.Linux下 安装github

    sudo apt -get install git git-core git-doc

    创建rsa公钥

    ssh-keygen -t rsa -C "your_email@youremail.com"

    整个过程中有一个需要填密码

    然后后进入~/.ssh目录 找到公钥id_rsa.pub

    记事本打开复制文字

    进入github.com中的的设置,找到pubkey选项,填入公钥。

    命题随便填

    4. 设置账户信息

    git config --global user.name "lukeyan"

    git config --global user.email xxx@gmail.com

    5. 测试链接:

    如果有you’ve successfully authenticated, but GitHub does not provide shell access 。这就表示已成链接

    接下来上传:

    git init

    git add .                    #如果是.表示上传全部目录下的文件,可以是某个文件

    git commit -m 'version 1.0'

    git remote add origin https://github.com/用户名/test.git

    git push origin master -f

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    Alpha发布——美工+文案展示博客
    021_func
    020_with
    018_IO
    017_set
    016_dict
    015_string
    012_list
    010_ternaryOperation
    008_standard_lib_os
  • 原文地址:https://www.cnblogs.com/aipiaoborensheng/p/4867662.html
Copyright © 2011-2022 走看看