- 1、初始化
git init
![](https://img.haomeiwen.com/i18773007/f5f235d56185b792.png)
- 2、上传到暂存区
git add .
![](https://img.haomeiwen.com/i18773007/1e1004aeda5583a5.png)
- 3.提交说明
git commit -m "first commit"
![](https://img.haomeiwen.com/i18773007/cfcb1f08035f6d96.png)
- 4.关联远程版本库
git remote add origin https://gitee.com/****************.git
![](https://img.haomeiwen.com/i18773007/036b88c18a068dda.png)
- 5.推送到远程master分支
git push -u origin "master"
![](https://img.haomeiwen.com/i18773007/dd1edbfe1a1a5772.png)
git init
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/****************.git
git push -u origin "master"
本文标题:Git 本地项目首次提交版本库 2023-02-10
本文链接:https://www.haomeiwen.com/subject/rjlhkdtx.html
网友评论