课程综述

版本管理的演变

image.png
image.png
image.png

Git 的特点

  • 最优的存储能力
  • 非凡的性能
  • 开源的
  • 很容易做备份
  • 支持离线操作
  • 很容易定制工作流程

    课程内容

    image.png

    安装 Git

    官网安装指导

    https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
    image.png

    在 Mac 上安装 Git

    image.png

    在 Windows 上安装 Git

    image.png

    检查安装结果

    在 bash 下执⾏下⾯的命令,看是否返回 git 的版本

    1. git --version
    2. git version 2.19.0

    最小配置

    配置 user 信息

    image.png

    config 的三个作用域

    image.png

    设置与清除

    image.png

    优先级

  • local > global > system

    课后实践

    image.png

    Git 基本命令

    建 Git 仓库

    image.png

    往仓库里添加文件

    image.png

    课后实践

    image.png

    Git 探秘

    image.png

    数⼀数 tree 的个数

    image.png

    课后实践

    image.png

    Git 的备份

    image.png
    image.png
    image.png
    image.png