gpt4 book ai didi

git - 转发主人到标签

转载 作者:太空狗 更新时间:2023-10-29 14:42:58 24 4
gpt4 key购买 nike

  • 我 promise 掌握
  • 我使用 git tag -v v1.7 -m "foo"
  • 为此次提交创建了一个标签
  • 我检查了一个标签 git checkout v1.7(master 指向相同的提交 ID)
  • 然后我创建了一个提交
  • 然后我使用 git tag -v v1.8 -m "bar"
  • 标记了这个提交

如何让 master 与标签 v1.8 具有相同的提交 ID

最佳答案

How do I get master to be at the same commit ID as the tag v1.8

如果在您创建 v1.8master 上没有新的提交,然后你可以切换到它并从 v1.8 merge 以获得 master 快速转发到 v1.8:

git checkout master
git merge v1.8

关于git - 转发主人到标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46620622/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com