zoukankan      html  css  js  c++  java
  • 如何把本地文件上传github

    1.$ git config --global user.name "xxx"

    2.$ git config --global user.email xxx@qq.com

    3.进入想要上传的该文件夹的目录

    $ git init(空文件夹不行)

    4.

    $ git add .

    5.

    $ git commit -m "java2"

    java2是随便起的名字、

    6.

    $ git remote add origin https://github.com/liangxinjingmeng/44444.git

    https://github.com/liangxinjingmeng/44444.git为github上的地址

    7.

    $ git push -u origin master

    执行这一步一开始可能会出错:

     ! [rejected]        master -> master (fetch first)

    error: failed to push some refs to 'https://github.com/liangxinjingmeng/44444.git'

    出错之后执行8,9

    8.

    $ git pull --rebase origin master

    9.

    $ git push -u origin master

     

    与其战胜敌人一万次,不如战胜自己一次。
  • 相关阅读:
    xml
    反射
    类加载器
    tcp通信
    UDP通信
    UDP与TCP协议
    网络通信协议
    符合汽车安全和质量标准的CYPRESS FRAM
    SRAM是什么存储器
    网络通信与便携式应用驱动SRAM技术发展
  • 原文地址:https://www.cnblogs.com/hyjh/p/11841064.html
Copyright © 2011-2022 走看看