git简介:
git版本回退
git log 该命令显示从最近到最远的提交日志。每一次提交都有对应的 commit id 和 commit message
git log --pretty=oneline 只显示commit id 和commit message
git 配置
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
注意 git config 命令的 --global 参数,用了这个参数,表示你这台机器上所有的 Git 仓库都会使用这个配置,当 然也可以对某个仓库指定不同的用户名和 Email 地址。