✨ Question of the day ✨: How do you migrate your repos to github? GET EXCLUSIVE CONTENT: www.patreon.com/CoderDave SUPPORT THE CHANNEL : Buy me a coffee: www.buymeacoffee.com/CoderDave PayPal me donation: paypal.me/dabenveg
I get stuck on the "Your old project requires credentials..." login screen. I followed the instructions to generate and enter the PAT as my password. It just goes back to login. Tried my full credentials; same thing. No matter what I do, it just asks me for the login and never proceeds.
Honestly, I don’t know… I the last week I tried many times with different configurations, but I haven’t been able to repro the problem. Be careful that it doesn’t work with “normal username and password” anymore, but works only with PATs
Hey, Did you choose to initialize the repo? If so, that's why there is no import option. You need to leave it completely empty (no readme, no license, no git ignore)
In that case, the easier stuff is to create a script that does `git clone --mirror`, using PATs, to cycle through the repos in AzDO Org1 and pushes them to AzDO Org2. Unfortunately there is nothing free that allows you to do it
The only automated way is using a paid engagement with GitHub or Microsoft services :( they have a tool for that. If you want to do it semi-manually, I'd recommend using this: pipelinestoactions.azurewebsites.net/ For more info: docs.github.com/en/actions/migrating-to-github-actions/migrating-from-azure-pipelines-to-github-actions
It seems you can do that when you create a new project - import from url, but no success there. Browser is still stuck on loading project files after 5h. There are many reports of this issue.
No matter what I did I could not get pass the authentication part. In the end all you need to do is to push your local repo into new remote one. If you using GitKraken (as you should) it is very simple to do. Or If you are one of git command line gurus you are probably not watching this video, but here it is anyway git remote remove origin git remote add origin yourRemoteUrl git push -u origin master
Interesting, I've used it many times and the only times I had some "issue" was because the PAT provided didn't have enough privileges, or because the url I was using was not correct (for example the url needs to be a little different when you have multiple repos in the same project)
@@CoderDave Yea maybe they changed something and it is broken now. I even tried to make devops repo public with full access and it still asked for credentials. Maybe it takes while for settings to change, who knows.
If it asked for credentials on a public repo I'm fairly sure the problem is the URL you are using. the syntax is a bit "picky" :) Let me check about that.
I've just tried importing a Git repo from AzDO to GH. This is what I used: URL: dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPO_NAME Username: my username Password: PAT with only "Read Code" as permission Import went fine
I was wondering if you knew if this retained version control for the Azure Repos? or if you knew of any articles that discussed retaining version control?
@@CoderDave so currently I am working on migrating my Azure Repos over to the Git repository but I would also like to keep tabs on the previous Azure repos and make sure I can change that if needed as well so by version control I mean would there be a way to make sure I am able to change the previous Azure Repos if needed even after migrating over to the Git repository
✨ Question of the day ✨: How do you migrate your repos to github?
GET EXCLUSIVE CONTENT: www.patreon.com/CoderDave
SUPPORT THE CHANNEL :
Buy me a coffee: www.buymeacoffee.com/CoderDave
PayPal me donation: paypal.me/dabenveg
Will it also migrate commit history as well from ADO repository to GitHub, I heard commit Id get rewritten in GitHub
Yes it will also migrate the history :)
How to automate this process using azure devops pipeline? Is this possible?
Not that I know :(
I get stuck on the "Your old project requires credentials..." login screen. I followed the instructions to generate and enter the PAT as my password. It just goes back to login. Tried my full credentials; same thing. No matter what I do, it just asks me for the login and never proceeds.
It happened to me too in the past, and the url was not correct.
@@CoderDave I am also facing the similar scenario and the URL is also correct but no luck. Is there any other work around for this?
Honestly, I don’t know… I the last week I tried many times with different configurations, but I haven’t been able to repro the problem.
Be careful that it doesn’t work with “normal username and password” anymore, but works only with PATs
Try using the “Generate Git Credentials” route. You’ll see the button for that on the Clone Repository screen in Azure Repo
@@CoderDave For me import worked with normal usename and password
It keeps saying "Your old project requires credentials for read-only access. We will only temporarily store them for importing."
It usually does that if you are trying to inpiut username/password instead of a PAT. Or if the URL is the repo is not in the correct format
@CodeDave Can you also please advise how to migrate Azure Boards (Projects) to GitHub projects?
Hey there, unfortunately I don't know of any good way to migrate Boards to Projects, they are just too different.
Anyone please help me i am stuck at the beginning after creating a project, there is no "import" option to put azure repo url. What should I do?
Hey, Did you choose to initialize the repo? If so, that's why there is no import option. You need to leave it completely empty (no readme, no license, no git ignore)
Hi, Great video.
What if we need to migrate 100’s of repos!?
My scenario is ADO to ADO but different subscriptions. Please help.
In that case, the easier stuff is to create a script that does `git clone --mirror`, using PATs, to cycle through the repos in AzDO Org1 and pushes them to AzDO Org2.
Unfortunately there is nothing free that allows you to do it
Dayum! Nice slick approach. +1 And I was noticing the irregular vid schedule, figured you had a good reason. Take care!
Thanks, you too! I will be back to normal schedule (hopefully) soon :) Merry Christmas in the meantime, if you celebrate it
really easiest
why it doesn't migrate subfolders. Only the root elements are copied. Any suggestion please to copy the complete repo with folder heirarcy
Not sure what you mean. Every time I used it it always migrated everything. You sure it is sub folders and not git submodules?
@CoderDave Can you advise how to migrate Azure pipelines to GitHub Actions?
The only automated way is using a paid engagement with GitHub or Microsoft services :( they have a tool for that.
If you want to do it semi-manually, I'd recommend using this: pipelinestoactions.azurewebsites.net/
For more info: docs.github.com/en/actions/migrating-to-github-actions/migrating-from-azure-pipelines-to-github-actions
@@CoderDave Thanks for your swift response🙂Are you reffering to the tool called "Valet" or what is the name of the tool.please confirm.
Exactly.
Hi. Is there a similar way of moving a project from Azure DevOps to GitLab?
Uhm, not sure… I’ve never had to move a project from AzDO to GitLab… I’ve only done it from GitLab to GitHub 😀
It seems you can do that when you create a new project - import from url, but no success there. Browser is still stuck on loading project files after 5h. There are many reports of this issue.
No matter what I did I could not get pass the authentication part. In the end all you need to do is to push your local repo into new remote one. If you using GitKraken (as you should) it is very simple to do. Or If you are one of git command line gurus you are probably not watching this video, but here it is anyway
git remote remove origin
git remote add origin yourRemoteUrl
git push -u origin master
Interesting, I've used it many times and the only times I had some "issue" was because the PAT provided didn't have enough privileges, or because the url I was using was not correct (for example the url needs to be a little different when you have multiple repos in the same project)
@@CoderDave Yea maybe they changed something and it is broken now. I even tried to make devops repo public with full access and it still asked for credentials. Maybe it takes while for settings to change, who knows.
If it asked for credentials on a public repo I'm fairly sure the problem is the URL you are using. the syntax is a bit "picky" :) Let me check about that.
I've just tried importing a Git repo from AzDO to GH. This is what I used:
URL: dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPO_NAME
Username: my username
Password: PAT with only "Read Code" as permission
Import went fine
@@CoderDave ¯\_(ツ)_/¯
Thanks CoderDave. Really straight forward process now you've laid it out so nicely.
Happy to know it's been helpful
I was wondering if you knew if this retained version control for the Azure Repos? or if you knew of any articles that discussed retaining version control?
Hey, I;m nopt sure what you mean with "retained version control". Can you elaborate?
@@CoderDave so currently I am working on migrating my Azure Repos over to the Git repository but I would also like to keep tabs on the previous Azure repos and make sure I can change that if needed as well so by version control I mean would there be a way to make sure I am able to change the previous Azure Repos if needed even after migrating over to the Git repository
Obrigado meu mano careca.
You are welcome 😄