Click here to Skip to main content
15,741,892 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to commit files into azure git repo using build pipeline.

I am generating some files from my azure ci pipeline and I want to commit those files into the same repo which I used in my ci pipeline.

What I have tried:

I have added azure cli task and added inline command to commit code but it gives me the error and not working.

git add .
git commit -m "adding arm extract"
git push -u origin Trunk
Updated 27-May-21 6:52am

1 solution

"git remote set-url origin https://username:gitpassword@repository url"
git checkout trunk
git add .
git commit -m "test commit"
git push -u origin trunk
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900