首页 > 其他分享 >github使用

github使用

时间:2023-05-26 09:11:52浏览次数:48  
标签:origin git ibd2sdi -- add github 使用

 

1.安装github客户端
Git-2.40.1-64-bit.exe

 

2.创建代码存放目录,比如我在桌面创建github目录
进入到github目录后,右键gitbash进入命令行模式

初次上传:
git clone https://github.com/hxlsky/myibd2sdi.git
git init
git add parse_ibd2sdi.py
git config --global user.name hxlsky
git config --global user.email [email protected]
git commit -m "解析ibd2sdi输出结果01"
git remote add origin https://github.com/hxlsky/myibd2sdi.git ##初始上传使用
git push -u origin master ##这个时候会弹出输入账号密码,文件上传后存放到master分支


再次上传:
直接进入到github目录
右键gitbash进入命令行模式
git add parse_ibd2sdi.py
git config --global user.name hxlsky
git config --global user.email [email protected]
git commit -m "解析ibd2sdi输出结果01"
git push -u origin master ##上传到master分支


上传到指定分支

cd github_test
git init
git checkout -b test
git remote add origin https://github.com/hxlsky/myibd2sdi.git
git add parse_ibd2sdi.py
git commit -m "测试分支"
git push -u origin test --force

 

标签:origin,git,ibd2sdi,--,add,github,使用
From: https://www.cnblogs.com/hxlasky/p/17433565.html

相关文章

  • oracle 包游标使用
    包游标即在包头声明部分定义游标头,即游标的定义,把实现部分留给包体来完成,调用时可以通过包来调用,这样方便共享游标,实际实现功能类似视图。示例包头定义createorreplacepackagemypackageiscursorcur_employee(deptnoinemployee.departmentno%type)return......
  • vscode使用cmake命令
    1、下载cmake:Download|CMake,并添加进环境变量(勾选即可)2、vscode安装插件 3、VisualStudioCode中CMake插件的基本使用_vscode中cmake_henry_23的博客-CSDN博客4、 ......
  • 使用腾讯云对象存储——图片
    选择需要使用的存储桶找到密匙引入依赖 <!--日期工具栏依赖--><dependency><groupId>joda-time</groupId><artifactId>joda-time</artifactId><version>2.9.9</version></depend......
  • RHEL8使用iSCSI部署网络存储-Linux就这么学17
        本章首先介绍计算机硬件存储设备的不同接口的优缺点,并由此切入iSCSI技术主题的讲解。iSCSI技术实现了物理硬盘设备与TCP/IP网络协议的相互结合,使得用户能够通过互联网方便地访问远程机房提供的共享存储资源。我们将学习在Linux系统上部署iSCSI服务端程序,并分别......
  • mongodb(5)--使用Java操作MongoDB
    一、环境的准备1、MongoDB已经安装完成2、java环境准备(1)jdk:oracle官网:https://www.oracle.com/java/technologies/downloads/(2)开发工具:  eclipse官网:https://www.eclipse.org/  idea官网:https://www.jetbrains.com.cn/idea/3、选择MongoDBJDBC驱动https://mongodb.gi......
  • Metabase可视化BI系统部署安装及简单使用
    Metabase是国外开源的一个可视化系统,语言使用了Clojure+TypeScript。Clojure(/ˈkloʊʒər/)是Lisp程式語言在Java平台上的現代、動態及函數式方言。来自维基百科。我也是第一次看到这个语言,知道它是可以运行在Java环境上的语言就可以了......
  • 使用Node搭建一个本地的WebSocket服务
    首先创建一个目录,cd到目录下,npminit-y一路回车,安装一个插件npmiwebsocket建一个server.js文件constWebSocketServer=require('websocket').serverconsthttp=require('http')constport=8000lettime=0//创建服务器constserver=http.createServe......
  • Linux和Windows下使用指定的JDK运行jar包
    Linux1.下载jdk软件包(例如:jdk-8u161-linux-x64.tar.gz)后解压2.启动jar命令jdk根目录/bin/java-jarxx.jarWindows1.下载jdk环境(jre文件夹)2.启动jar命令jdk根目录/bin/java-jarxx.jar ......
  • elementUI使用之table表格如何给行元素添加点击事件
    官方文档提供的event事件在代码中绑定事件在methods中写方法好了,这样就可以实现了。......
  • Swift中常见的String用法,Array高阶使用,Set集合操作
    String字符串常见用法生成字符串创建字符串letgreeting="Hello,world!"letname=String("John")连接字符串:使用加号(+)或者字符串插值(使用())来将多个字符串连接起来。varfirstName="John"letlastName="Doe"letfullName=firstName+""+las......