handle branch and tag update