Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (11)
  • ESXi (1)
  • Git (4)
  • Google Cloud (3)
  • Javascript (6)
  • Kubernetes (4)
  • Linux (36)
  • Mac (7)
  • Magento (4)
  • Mysql (14)
  • 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/*