Git push failed inside pipeline [Azure DevOps]

Git push failed inside pipeline [Azure DevOps]

Last day I was struggling with the git error inside the pipeline.
The pipeline code was simple, it should change branch into the existing one, add one file there and push it into git

However, this error occurred every time

I tried many multiple things, changing git switch to git branch, tried to use git rebase – no success!
But then I tried to modify pull to pure git pull – and it worked!!!

Working code:

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments