Git命令行
用于之后工作后参考,小结。Git可以知道每次修改的内容,
随时进行版本切换。
git config user.name"Seven"
git config user.email"example@163.com"
仓库初始化
git init
添加.gitgnore build
打标签
git tag -a v1.2 -m "example log"
查看标签
git tag -l
查看标签,每个标签查看5行
git tag -n5
切换指定标签且新建分支
git checkout -b dev v1.2
回退到某个标签版本
git reset --hard v1.1
删除分支
git branch -d dev