Hi all
I am having trouble with getting a pipeline run without errors. I'm trying to run a job wich uses the Power Platform Build Tools to export, unpack and push the code of a solution to an Azure DevOps repo.
I'm following the example of Suparna Banerjee in Quick Wins I Set up Azure DevOps Pipelines for Power Platform - YouTube
While trying I keep getting the following errors executing the last step (CMD Line Script);
error: pathspec 'main' did not match any file(s) known to git
error: src refspec main does not match any
error: failed to push some refs to '**'
##[error]Cmd.exe exited with code '1'.
The script (** = made unreadable):
echo commit all changes
git config user.email "**"
git config user.name "**"
git checkout main
git add --all
git commit -m "solution init"
echo push code to new repo
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main
Some help would be appreciated a lot. Thanks in advance!
DiBeau