0
点赞
收藏
分享

微信扫一扫

GIT 基于TAG拉取分支

小布_cvg 2022-01-13 阅读 114
git

git 基于tag拉branch

  1. 获得最新.
git origin fetch
  1. 从tag创建新的分支.
git branch <new-branch-name> <tag-name>
  1. 切换到新的分支.
git checkout newbranch

4.分支提交到远程仓库.

git push origin newbranch

当然最好能使用工具去操作 例如 IDEA ,小乌龟(TortoiseGit),GIT Lab ,source tree, VScode等,便捷省时而且准确不会出现拼写错误。

举报

相关推荐

0 条评论