Cara mengatasi error src refspec v1 matches more than one

error: src refspec v1 matches more than one.
error: failed to push some refs to '[email protected]:jaranguda/mail.jaranguda.git'

Cek tag yang bermasalah dengan git tag

$ git tag
v1
v2

lalu hapus dengan git tag -d NAMATAG

$ git tag -d v1
Deleted tag 'v1' (was 26be539)

lalu push kembali

git push --set-upstream origin v1
## output perintah diatas
Branch v1 set up to track remote branch v1 from origin.
Everything up-to-date
Counting objects: 39, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (39/39), done.
Writing objects: 100% (39/39), 431.75 KiB | 0 bytes/s, done.
Total 39 (delta 12), reused 0 (delta 0)
 * [new branch]      v1 -> v1
Branch v1 set up to track remote branch v1 from origin.

Leave a comment

Your email address will not be published. Required fields are marked *