I simply want to run a Git command from a YAML file. Here's what I have in my YAML file:
steps:
- checkout: self
persistCredentials: true
- task: Bash@3
inputs:
targetType: 'inline'
script: |
git config user.name "my_name"
git config user.password "my_password"
git clone https://my_repo@dev.azure.com/the_repo_stuff
git checkout dev
git checkout -b newer-branch
git commit -a -m 'new branch commit'
git push --set-upstream origin newer-branch
I'm getting fatal: could not read Password for 'https://my_repo@dev.azure.com': terminal prompts disabled
The password I used is what I generated in Azure DevOps in the Clone window.
For now, my goal is simply to get this script to create a branch. Eventually, I would like to pass in variables and make it more complex.
