安装
yum –y install git // Linux系统
brew install git // Mac系统
配置
ssh-keygen -t rsa -C "你的邮箱" // 创建秘钥
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --global --list // 查看当前用户配置
标签
git tag -a R20190218-01 // 打标签
git push origin R20190218-01 // 推送标签
git tag -d R20190218-01 // 删除本地标签
git push --delete tag R20190218-01 // 删除远端标签
添加新仓库
git init // 初始化本地代码
git remote add origin "github仓库地址" // 添加远端git地址
git push -f origin master // 强制推送
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。