【问题标题】:update a specific tag with git subtree使用 git subtree 更新特定标签
【发布时间】:2017-11-28 13:32:21
【问题描述】:

类似的问题是checkout a specific tag with git subtree。但是我所做的是 git remote add next https://github.com/iissnan/hexo-theme-next git subtree add --prefix=themes/next next tags/v5.1.0 --squash 到现在一切都还好,但是当我想将子树更新到 5.1.3 时 git subtree pull --prefix=themes/next next tags/v5.1.3 我明白了 From https://github.com/iissnan/hexo-theme-next * tag v5.1.3 -> FETCH_HEAD Already up-to-date. 我确定有标签 5.1.3,那我该如何更新呢?

【问题讨论】:

    标签: git git-subtree


    【解决方案1】:

    最后,我解决了这个问题 git subtree add --prefix=themes/next next master --squash 然后我可以拉一个指定的标签

    【讨论】:

      猜你喜欢
      • 2019-08-19
      • 1970-01-01
      • 2014-01-25
      • 2012-10-10
      • 1970-01-01
      • 1970-01-01
      • 2010-10-21
      • 1970-01-01
      • 2018-11-03
      相关资源
      最近更新 更多