# Stock Capital IO

## 环境篇 (3)

### GIT 环境配置

- 安装 GIT

>  v2.18.0 or latter

    # 官网
    https://git-scm.com/
    # 当前最新版本号为2.18.0

> 环境变量

    # GIT安装完成后自动会导入PATH， 注意 git的顺序在JAVA、MAVEN、NODE之后，这样 WINDOWNS即可适用 git bash


- 配置

>
    # 设置个人信息
    git config --global user.name  "姓名"
    git config --global user.email "邮箱"


    # windows 开发者
    git config --global core.autocrlf true

    # mac/linux 开发者
    git config --global core.autocrlf input

    # 设置ssh协议秘钥
    ssh-keygen

    # 设置命令别名
    git config --global alias.st status
    git config --global alias.co checkout
    git config --global alias.ci commit
    git config --global alias.br branch

    # 设置默认使用 rebase进行pull合并动作
    # 使开发者公用分支提交代码时不产生Merge点, 保证了代码的整洁, 即: git pull --rebase
    git config --global pull.rebase true
