I'm working on importing a repository from Git repository and creating its own branch per environment (DEV,Test,PreProd,Production) when I import the repository I import triggers too, but, looks like they only run off of the live mode but not against a branch. If I were to overwrite live mode I run into errors with the below error message which is a bit misleading as I don't have these named objects in my repository.
Error:
The document creation or update failed because of invalid reference. Please ensure exists in data factory mode and recreate it in Git mode if already present.
What would be a good practice to manage triggers in all these different environments.