通过git命令“六步”提交新项目到码云

时间:2023-03-09 02:06:23
通过git命令“六步”提交新项目到码云

通过git命令“六步”提交新项目到码云

一、初始化本地仓库

git init

通过git命令“六步”提交新项目到码云

二、添加文件

git add .

通过git命令“六步”提交新项目到码云

三、添加远程数据仓库链接

git remote add origin https://gitee.com/chenzheng8975/FyWisdom.git

通过git命令“六步”提交新项目到码云

四、从远程仓库拉取代码

git pull origin master --allow-unrelated-histories

通过git命令“六步”提交新项目到码云

五、提交到本地仓库

git commit -m "init commit"

通过git命令“六步”提交新项目到码云

六、提交代码到远程仓库

git push -u origin master -f

通过git命令“六步”提交新项目到码云