
Announcements
I have a DevOps pipeline that deploys the PowerPages site from Dev to NonProd environment and it works fine when I run it the first time on an empty DevOps Repo with only the main branch, the Powershell script looks like this: I create a local branch (nonprod) using the Powershell script.
The pipeline fails on the last part of the Powershell script:
# Set global user configuration
git config --global user.email "user@company.com"
git config --global user.name "Name"
git config --global core.longpaths true
# Create a new branch
git checkout -b nonprod
# Add and commit changes
git add --all
git commit -m "solution"
git push origin nonprod
When I run the pipeline for the second time I get the following error: