准备
- 先去gitee上创建仓库(仓库名与本地项目名一致)
操作
- 控制台进入本地项目
cd D:\CivilInformationCollection
- 执行如下命令
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/Rinaloving/civil-information-collection.git
git push -u origin "master"
示例
- 初始化并添加
git init
git add .

- 提交
git commit -m '推送源码'

- 添加到远程仓库
git remote add origin https://gitee.com/Rinaloving/civil-information-collection.git

- 推送
git push -u origin "master"

-
查看仓库
image.png
网友评论