Hi all,
This is a relatively simple issue, but I am not able to solve it in the pipeline.
I am running the following command line script to save exported dataverse solution in repo.
git config user.email "email address removed for privacy reasons"
git config user.name "User1"
git checkout main
git pull
git add --all
git commit -m "Test solution 1"
echo push code to new repo
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main -f
But the 'git checkout' is giving the following error: pathspec 'main' did not match any file(s) known to git
I am already on the main branch. I tried from git bash via my local machine and the commit works fine from there. But the pipeline action gives the above error.
Is this something related to the permission settings for the repo or the user?
Thanks in advance
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
76
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1