Reputation: 7
How do I create a branch in the Yamal pipeline and then see it in a list of a branch in azure Devops? I can create it but I don't see my branch in a list of branch
Upvotes: 0
Views: 833
Reputation: 193
If you create new branch during pipeline execution on agent with command like:
git checkout -b mynewbranch
it stays local on agent where pipeline is running.
To see it in list of branches you need to push it to your repository:
git push --set-upstream origin mynewbranch
If you skip this step, new branch will live only on agent where pipeline is executed and will be deleted once job is finished.
Once you push it, you should be able to see new branch in results from:
git branch -r
it will be listed as
origin/mynewbranch
Upvotes: 1