初学git

1、创建git账号

分布式版本控制管理

  • image-20221226220801729

  1. 创建repo eg: test.github.io

  2. git init git config user.name Icy19x git config user.email 1102874857@qq.com git remote add origin https://github.com/Icy19x/springbootdemo.git

    git push origin master

     

  3. clone or fetch code

  4. 上传代码git push origin master

    新建分支 git branch dev1

    查看分支 git branch

    切换分支 git switch

    合并分支 git merge dev1

  5. 两人合作开发

    • tip1:

    image-20221226233036327

posted @ 2022-12-26 23:33  Icy_yayaya  阅读(18)  评论(0)    收藏  举报