Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (10)
  • Git (3)
  • Javascript (6)
  • Linux (31)
  • Mac (6)
  • Magento (4)
  • Mysql (13)
  • PHP (9)
  • Zend framework 2 (9)
  • Posted on April 6, 2015

    When a tag is created, removed and recreated with the same name, it can lead to errors by other git clients. mainly the error “tag already exists in the remote”

    Sync tags based on hash instead of name

    To fix this error on the client site, the local repo must be synced with the remote. The next command will sync the tags based on hash instead of the name.

    
        git fetch --prune origin +refs/tags/*:refs/tags/*