Git的最小配置
每天向前一小步,迈向成功一大步
Git的特点:
- 最优的存储能力
- 非凡的性能
- 开源的
- 很容易做备份
- 支持离线操作
- 很容易定制工作流程
配置user信息
配置user.name和user.email
- $git config --global user.name ‘your_name’
- $git config --global user.email ‘your_email@domain.com’
config的三个作用域
- 缺省等同于local
- $git config --local (local:只对某个仓库有效)
- $git config --global(global:对当前用户所有仓库有效)
- $git config --system(对系统所有的登录的用户有效)
显示config的配置,加 --list
- $git config --list --local
- $git config --list --global
- $git config --list --system
pwd:显示当前工作的路径