添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
豪爽的西装  ·  国际经济金融形势·  2 月前    · 
干练的火柴  ·  rror creating bean ...·  3 月前    · 
憨厚的柚子  ·  干嘉伟:To ...·  3 月前    · 

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

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.

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

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}

Subscribe to

Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.