In VSTS task, I use this task to sync VSTS git repo to github repo.
First, and set Git Repo with https://$(githubpersonaltoken)@github.com/account/repo1.git. After queuing this build, I changed Git Repo with https://$(githubpersonaltoken)@github.com/account/repo2.git and then queue build, but it always to try to connect with repo1. error: failed to push some refs to 'https://********@github.com/account/repo1.git'
BTW, even it failed to sync with github, but Git Publish Task always return with success state.
In VSTS task, I use this task to sync VSTS git repo to github repo. First, and set Git Repo with
https://$(githubpersonaltoken)@github.com/account/repo1.git
. After queuing this build, I changed Git Repo withhttps://$(githubpersonaltoken)@github.com/account/repo2.git
and then queue build, but it always to try to connect with repo1.error: failed to push some refs to 'https://********@github.com/account/repo1.git'
BTW, even it failed to sync with github, but Git Publish Task always return with success state.