Coder Social home page Coder Social logo

hercules261188 / azuredevopstogithubrepomigrator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from n3wt0n/azuredevopstogithubrepomigrator

0.0 1.0 0.0 69 KB

Utilities to migrate a Git Repo from Azure DevOps to GitHub (including history, branches and tags)

License: MIT License

PowerShell 77.36% Dockerfile 5.35% Batchfile 8.89% Shell 8.40%

azuredevopstogithubrepomigrator's Introduction

Azure DevOps To GitHub Repository Migrator

Validate PowerShell Docker CI/CD Validate YAML License

Utilities to migrate a Git Repo from Azure DevOps to GitHub.

It will migrate ALL you have in your repository, including all the branches, all the tags and the complete history of commits.

Video

If you want to see an in-depth explanation on how to migrate from Azure DevOps Repos to GitHub, check this video on YouTube:

Migreate to GitHub

Usage

There are 3 main ways to perform the migration:

  • Scripts
    • Manually or Automated
    • Verbose or Silent
    • Check the README for more info
  • Docker container
  • Azure Container Instances
    • Use the scripts i the ACI folder to deploy to Azure ACI
    • Check the README for more info

Migration Steps

The migrator will perform the migration in 4 steps:

  1. Make sure you have a local copy of all "old repo", branches and tags
  • Create a new folder (with name in the format "AZUREDEVOPSREPONAME-Migration")
  • Clone the Azure DevOps repo into it
  • Check out all the branches and tags as well
  1. Add the GitHub repo as a new remote origin
  2. Push all local branches and tags to the new repo
  3. Clean up. Remove the Azure DevOps repo and its dependencies from the origins, set the GitHub one as only origin

Prerequisites

Both the scripts and the containerized version require a series of prerequisites to work.

Azure DevOps

You need to know/have:

  • The name of the Azure DevOps Organization where your source repository resides (the XXX in dev.azure.com/XXX or XXX.visualstudio.com)
  • The name of the Azure DevOps Team Project_ where the source repository resides
  • The name of the Azure DevOps Source Repository to migrate (because a single Team Project may contain multiple repositories)

You also need to generate a PAT (Personal Access Token) in Azure DevOps with the following permissions:

  • Code
    • Read

For instruction on how to generate a PAT in Azure DevOps, take a look at the official documentation here

GitHub

You need to know/have:

  • The GitHub Username or (Organization) with which you have created the destination repository
  • The name of the GitHub Destination Repository

Please note that the Destination Repo must be empty and not be initialized.

You also need to generate a PAT (Personal Access Token) in GitHub with the following permissions:

  • repo (Full control)

For instruction on how to generate a PAT in GitHub, take a look at the official documentation here

azuredevopstogithubrepomigrator's People

Contributors

n3wt0n avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.