How I do Migrate terraform modules from azure devops to an existing github repo?

Antonio Codispoti 0 Reputation points
2023-09-21T15:38:02.8+00:00

Hey,
I want to copy some terraform modules hosted on ADO to my TF repo to Github.
How can I do that?

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2023-09-21T18:23:10.37+00:00

    Hi Antonio,

    One easy way is adding a remote in your local (Also is possible by a pipeline script task) and from you local copy to your Github repo.

    git remote add originGithub <url another repo github>
    #to test can list the remotes you will see origin and originGihub
    git remote -v 
    git config --list  # this one isn't required if you will do by pipeline
    
    #push your current main branch to github repo origin
    git push originGithub main
    
    

    Cheers,

    Luis Arias


    If the information helped address your question, please Accept the answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.