I have found some solution here: Checkout part of a branch in Azure DevOps Pipelines (GetSources)
But the concern is I am not using yml script to configure the pipeline. I have configured the pipeline like this:
I can view my yml script from here:
But not able to edit this script from there
please let me know if anyone has an idea on it.