通过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命令“六步”提交新项目到码云

相关文章:

  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-12-16
  • 2022-01-23
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-05-08
  • 2021-06-23
  • 2021-06-09
  • 2021-08-02
  • 2021-11-01
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案