Sachi Williams explains how to do this on Northwest Cadence’s blog.
I have outlined the basic steps below:
- Clone the VSO Git repo into Visual Studio.
-
Add the GitHub (or any other Git repo) as a remote for the new one:
git remote add GitHub [Your GitHub repo]
. -
Pull from GitHub:
git pull GitHub master
. -
Push to VSO:
git push origin master
. - Repeat per branch.