Git标签使用技巧
1.远程仓库中拉取指定分支
git clone -b <指定分支名> <远程仓库地址>2.递归克隆
git clone --recursive https://github.com/dotnet/aspnetcore.git3.切换到指定分支
#branch分支管理
git branch
git switch 分支名4.创建标签
git tag v1.0
#默认标签是打在最新提交的commit上5.为指定的commit id创建标签
6.删除标签
7.推送标签至远程仓库
8.切换至标签
9.本地没有远程标签
10.gitignore文件重新生效
11.本地关联远程
12.变基->快进合并
最后更新于