git官方网站文档:
https://git-scm.com/book/zh/v2
git 配置命令
git config
config 配置有:
system级别
global(用户级别)
local(当前仓库)
设置先从system -> global -local 底层配置会覆盖顶层配置
分别使用--system/global/local 可以定位到配置文件
常用的一些命令
1、查看系统config
git config --system --list
2、查看当前用户(global)配置
git config --global --list
3、查看当前仓库配置信息
git config --local --list
4、新建一个文件
echo 'git_lianxi' > README
5、查看当前git的状态
git status
6、查看当前的一些操作
git status -s
或git status --short
7、查看已暂存的将要添加到下次提交里的内容
git diff --cached
或git diff --staged