zoukankan      html  css  js  c++  java
  • 使用git将项目上传到github仓库


    *git提交
    1、克隆代码仓库,用于同步

    73134@LAPTOP-SG3JANLL MINGW64 /d/Python/pyecharts-gallery
    $ git clone https://github.com/security-zjt/py3Dmap.git
    Cloning into 'py3Dmap'...
    remote: Enumerating objects: 3, done.
    remote: Counting objects: 100% (3/3), done.
    remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
    Receiving objects: 100% (3/3), done.

    2、进入需要同步的文件用以上传项目

    73134@LAPTOP-SG3JANLL MINGW64 /d/Python/pyecharts-gallery
    $ cd py3Dmap/

    3、把py3Dmap下的文件都添加进来

    73134@LAPTOP-SG3JANLL MINGW64 /d/Python/pyecharts-gallery/py3Dmap (main)
    $ git add .
    warning: LF will be replaced by CRLF in README.md.
    The file will have its original line endings in your working directory
    warning: LF will be replaced by CRLF in .idea/inspectionProfiles/Project_Default.xml.
    The file will have its original line endings in your working directory
    warning: LF will be replaced by CRLF in .idea/inspectionProfiles/profiles_settings.xml.
    The file will have its original line endings in your working directory

    4、提交代码

    73134@LAPTOP-SG3JANLL MINGW64 /d/Python/pyecharts-gallery/py3Dmap (main)
    $ git commit -m "first commit"
    [main e0d729d] first commit
    756 files changed, 1382064 insertions(+), 1 deletion(-)
    create mode 100644 .idea/.gitignore
    create mode 100644 .idea/inspectionProfiles/Project_Default.xml
    create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
    create mode 100644 .idea/misc.xml
    create mode 100644 .idea/modules.xml
    create mode 100644 .idea/pyecharts-gallery.iml
    create mode 100644 .idea/vcs.xml
    create mode 100644 .nojekyll

    5、将本地仓库push到github上面

    73134@LAPTOP-SG3JANLL MINGW64 /d/Python/pyecharts-gallery/py3Dmap (main)
    $ git push -u origin
    Enumerating objects: 804, done.
    Counting objects: 100% (804/804), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (801/801), done.
    Writing objects: 100% (802/802), 4.25 MiB | 1.48 MiB/s, done.
    Total 802 (delta 321), reused 0 (delta 0), pack-reused 0
    remote: Resolving deltas: 100% (321/321), done.
    To https://github.com/security-zjt/py3Dmap.git
    761c6ec..e0d729d main -> main
    Branch 'main' set up to track remote branch 'main' from 'origin'.
  • 相关阅读:
    03 Java 修饰符
    04_Java 循环结构 for, while 及 do...while
    01_Java第一个程序_报错记录
    07_Java StringBuffer 和 StringBuilder 类_(修改,并且不产生新的未使用对象)
    06_Math 的 floor,round 和 ceil 方法实例比较_格式化字符串_String类
    [爱偷懒的程序员系列]Section 1. “懒”是一切需求的根源
    (1)Micropython+ESP32 点亮一个LED
    数据迁移测试方法【转】
    回来了回来了,失踪人口回归
    [爱偷懒的程序员系列]Section 4. 自定义钉钉消息推送
  • 原文地址:https://www.cnblogs.com/security-guard/p/14930110.html
Copyright © 2011-2022 走看看