Git
#Git #命令
基本配置
配置用户和邮件
git config --global user.name "Your Name Comes Here"
git config --global user.email [email protected]
彩色输出
git config --global color.ui true
git config --global core.pager more
克隆
拉取指定分支
git clone -b 指定分支 `git地址`
浅克隆(只克隆最新的提交) number: 最近的第 n 次提交, 例如1, 表示最新的一次提交 repo: 远程仓库 url
git cone --depth number repo