一、在gitHub上创建新项目
【1】点击添加(+)-->New repository

【2】填写新项目的配置项
Repository name:项目名称
Description :项目的描述
Choose a license:license

【3】点击确定,项目已在github创建成功,如下图

二、本地项目上传github
【1】进入到项目文件夹,打开git branch

【2】初始化git项目
bash
git init
运行结果:
1)

2)项目文件夹中出现.gitignore文件
【3】提交文件至git本地仓库
bash
git add .
git commit -m "提交描述信息"
【4】切换至github上的分支,
查看github上的分支:

运行命令:
bash
git branch -M main
输入完命令后,代码分支由master 切换至main,如下图:

【5】把远端的地址 重命名 并且添加到本地
重命名:billingSys
远端地址:https://github.com/zykHero/billingSys.git
bash
git remote add billingSys https://github.com/zykHero/billingSys.git
【6】push文件到github
bash
git push -u billingSys main