web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Git push error on bran...
Power Apps
Unanswered

Git push error on branch other than main

(0) ShareShare
ReportReport
Posted on by 12

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

On branch BranchABC
nothing to commit, working tree clean
fatal: 'BranchABC' does not appear to be a git repository
fatal: Could not read from remote repository.
fatal: could not read Username for <azure devops url> terminal prompts disabled
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    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}
  • fannazephyr Profile Picture
    12 on at

    The idea is multiple developers can push their code in thier own branches in azure devops and then they will be merged for deployment

  • fannazephyr Profile Picture
    12 on at

    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. 

    echo commit all changes
          git config user.email "<email>"
          git config user.name "<user name>"
          git checkout -B FeatureBranch
          git add --all
          git commit -m "solution init"
          echo push code to new repo
          git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push --set-upstream origin
    FeatureBranch
  • cchannon Profile Picture
    4,702 Moderator on at

    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
  • fannazephyr Profile Picture
    12 on at

    then it is giving error: src refspec main does not match any - this error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard