i have a yaml pipeline which is working well when i am pushing my power app solution to git repo in the main But when i create a new branch(based on main) , say BranchABC. Is it failing with error.
I am trying to achieve a situation where each developer can checkin in their components in their own branches in Azure DevOps
then it is giving error: src refspec main does not match any - this error.
Right. Try specifying the local branch as well as the target branch along the lines of:
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push --set-upstream origin
MainBranch:FeatureBranch
i have these set of commands in yml. I have yml on my main branch and trying to push solution to custom FeatureBranch. It works if i run pipeline from FeatureBranch but not from main branch.
The idea is multiple developers can push their code in thier own branches in azure devops and then they will be merged for deployment
What command are you running? have you tried specifying both the local branch name and the remote branch name to remove any ambiguity?
git push origin {localBranchName}:{remoteBranchName}
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72