Reputation: 21
I was trying to pull the code from master to fork repository automatically through the azure pipeline. If any one know about this?
Upvotes: 1
Views: 2240
Reputation: 3205
If you fork azure repo and want to automatically sync the Fork repo using VSTS Git, please follow below steps.
git remote add upstream https://username:[email protected]/{organization}/{project}/_git/test
to specify it as the upstream of test_fork repo in script.git remote add upstream https://username:[email protected]/{organization}/{project}/_git/test
git fetch upstream
git rebase upstream/master
git push -f origin HEAD:master
Upvotes: 2