赞
踩
下载二进制安装文件,直接安装
如果你会用brew,那么可以执行:brew install git
,完成安装。
Command Line Tools是在Xcode中的一款工具,可以在命令行中运行C/C++程序,还包含一些命令,就包含Git命令:
xcode-select --install
查看版本#
git --version
git config --global user.name "test"
git config --global user.email "test@163.com"
git init
git status
git add index.html
或添加所有
git add -A
git commit -m "add index file"
git log
git reset --hard HEAD~
恢复到指定提交
git reset --hard 提交id
git restore 文件名称
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。