Hello @Tinashe Chinyati ,
Welcome to the MS Q&A platform.
Please correct me if my understanding is wrong. You are trying to publish from your main branch and getting an error "Please ensure 'TRIGGER_NAME' is not referencing 'PIPELINE_NAME' in Git and data factory mode."
You seem to have deleted the pipeline and merged the changes to master without deleting the trigger in the Feature branch. Due to this reason, you are getting this error when trying to publish from the master branch(collaboration branch)
If you are in the feature branch, your "overwrite live mode" is disabled.
Can you go to the feature branch and see if the trigger is still present? If the trigger is present, please delete and create a new pull request to the master branch. Even if you don't see the trigger, please make a final pull request from your Feature branch to the master branch.
Once the pull request is complete from the master branch, try to publish.
Please let me know if you have any further questions.