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

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    5.9上午
    5.4下午
    5.4上午
    5.2上午
    4.19下午
    4.18上午
    4.17下午
    4.17上午
    4.12下午
    4.13下午
  • 原文地址:https://www.cnblogs.com/aipiaoborensheng/p/4867662.html
Copyright © 2011-2022 走看看