search

Home  >  Q&A  >  body text

How to merge local branch with remote tag in github?

How to merge local branches with remote tags in github?

PHP中文网PHP中文网2795 days ago635

reply all(3)I'll reply

  • 迷茫

    迷茫2017-05-02 09:29:53

    If you want to update the branch, then you create a certain Tag checkout as a branch and then merge it into the local branch

    git checkout -b local-tag tag-v1.1
    git checkout local-branch
    git merge local-tag
    

    If you want to update the tags, just re-tag them

    git checkout local-branch
    git tag -f tag-v1.1
    git push

    reply
    0
  • PHPz

    PHPz2017-05-02 09:29:53

    git push
    Push the local branch to the remote branch, and then execute git merge or git rebase

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:29:53

    Give you a simple operation method, portal: git - simple guide

    reply
    0
  • Cancelreply