The Easiest Way to Migrate an Azure DevOps Repos to GitHub

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 44

  • @CoderDave
    @CoderDave  2 года назад

    ✨ 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

  • @gunjan9613
    @gunjan9613 5 месяцев назад +1

    Will it also migrate commit history as well from ADO repository to GitHub, I heard commit Id get rewritten in GitHub

    • @CoderDave
      @CoderDave  5 месяцев назад

      Yes it will also migrate the history :)

  • @chaithanyatilak8957
    @chaithanyatilak8957 Год назад +1

    How to automate this process using azure devops pipeline? Is this possible?

  • @FixItScotty
    @FixItScotty 2 года назад +1

    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.

    • @CoderDave
      @CoderDave  2 года назад

      It happened to me too in the past, and the url was not correct.

    • @anuragverma4730
      @anuragverma4730 2 года назад

      @@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?

    • @CoderDave
      @CoderDave  2 года назад

      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

    • @andrewogu6451
      @andrewogu6451 2 года назад

      Try using the “Generate Git Credentials” route. You’ll see the button for that on the Clone Repository screen in Azure Repo

    • @sowmya1797
      @sowmya1797 Год назад

      @@CoderDave For me import worked with normal usename and password

  • @miguelr5300
    @miguelr5300 2 года назад +1

    It keeps saying "Your old project requires credentials for read-only access. We will only temporarily store them for importing."

    • @CoderDave
      @CoderDave  2 года назад

      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

  • @sowmya1797
    @sowmya1797 Год назад +1

    @CodeDave Can you also please advise how to migrate Azure Boards (Projects) to GitHub projects?

    • @CoderDave
      @CoderDave  Год назад

      Hey there, unfortunately I don't know of any good way to migrate Boards to Projects, they are just too different.

  • @cherrys88s
    @cherrys88s 2 года назад +1

    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?

    • @CoderDave
      @CoderDave  2 года назад +1

      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)

  • @vinayhegde9888
    @vinayhegde9888 2 года назад +1

    Hi, Great video.
    What if we need to migrate 100’s of repos!?
    My scenario is ADO to ADO but different subscriptions. Please help.

    • @CoderDave
      @CoderDave  2 года назад +1

      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

  • @Chatsworth1979
    @Chatsworth1979 2 года назад +1

    Dayum! Nice slick approach. +1 And I was noticing the irregular vid schedule, figured you had a good reason. Take care!

    • @CoderDave
      @CoderDave  2 года назад +2

      Thanks, you too! I will be back to normal schedule (hopefully) soon :) Merry Christmas in the meantime, if you celebrate it

  • @andradevander
    @andradevander 2 года назад +1

    really easiest

  • @VaibhavTiwarithoughts
    @VaibhavTiwarithoughts Год назад

    why it doesn't migrate subfolders. Only the root elements are copied. Any suggestion please to copy the complete repo with folder heirarcy

    • @CoderDave
      @CoderDave  Год назад

      Not sure what you mean. Every time I used it it always migrated everything. You sure it is sub folders and not git submodules?

  • @sowmya1797
    @sowmya1797 Год назад +1

    @CoderDave Can you advise how to migrate Azure pipelines to GitHub Actions?

    • @CoderDave
      @CoderDave  Год назад

      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

    • @sowmya1797
      @sowmya1797 Год назад +1

      @@CoderDave Thanks for your swift response🙂Are you reffering to the tool called "Valet" or what is the name of the tool.please confirm.

    • @CoderDave
      @CoderDave  Год назад

      Exactly.

  • @eugenbvro
    @eugenbvro 2 года назад +1

    Hi. Is there a similar way of moving a project from Azure DevOps to GitLab?

    • @CoderDave
      @CoderDave  2 года назад +1

      Uhm, not sure… I’ve never had to move a project from AzDO to GitLab… I’ve only done it from GitLab to GitHub 😀

    • @eugenbvro
      @eugenbvro 2 года назад +1

      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.

  • @jeffsaffron5647
    @jeffsaffron5647 2 года назад +1

    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

    • @CoderDave
      @CoderDave  2 года назад

      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)

    • @jeffsaffron5647
      @jeffsaffron5647 2 года назад +1

      @@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.

    • @CoderDave
      @CoderDave  2 года назад

      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.

    • @CoderDave
      @CoderDave  2 года назад +1

      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

    • @jeffsaffron5647
      @jeffsaffron5647 2 года назад

      @@CoderDave ¯\_(ツ)_/¯

  • @tangiblyrows
    @tangiblyrows 2 года назад

    Thanks CoderDave. Really straight forward process now you've laid it out so nicely.

    • @CoderDave
      @CoderDave  2 года назад

      Happy to know it's been helpful

  • @988skywalker
    @988skywalker 2 года назад

    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
      @CoderDave  2 года назад

      Hey, I;m nopt sure what you mean with "retained version control". Can you elaborate?

    • @988skywalker
      @988skywalker 2 года назад

      @@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

  • @paulocordeiro8565
    @paulocordeiro8565 2 года назад

    Obrigado meu mano careca.

    • @CoderDave
      @CoderDave  2 года назад

      You are welcome 😄