GIT 基于TAG拉取分支

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等,便捷省时而且准确不会出现拼写错误。

你可能感兴趣的:(工具使用总结,git)