---
title: "Discussion on \"Migrating GIT repositories from local to hosted Gitlab\" | Hashnode"
description: "Discussion on \"Migrating GIT repositories from local to hosted Gitlab\". To migrate GIT repos from your local git server to hosted GitLab and to ensure all the previous commit history and metadata are retained follow the below steps outlined\nCreate a mirror of the GIT Repo\ngit clone --mirror git@git01.int.co.lan:test-app\n..."
url: "https://hashnode.com/posts/migrating-git-repositories-from-local-to-hosted-gitlab/63db9ffa587da0da726197e4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Migrating GIT repositories from local to hosted Gitlab](https://azhercan.com/migrating-git-repositories-from-local-to-hosted-gitlab?utm_source=hashnode&utm_medium=feed)

To migrate GIT repos from your local git server to hosted GitLab and to ensure all the previous commit history and metadata are retained follow the below steps outlined Create a mirror of the GIT Repo git clone --mirror git@git01.int.co.lan:test-app ...

Feb 2, 2023 · 2 min read · azhercan.com  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#migration](https://hashnode.com/tag/migration)

## Written by

[Azher Khan](https://hashnode.com/@azhercan)

@azhercan

  
[View profile](https://hashnode.com/@azhercan)

Tech Enthusiast & Certified DevOps SRE

DevOps Enthusiast, Certified DevOps SRE. Works on Oracle Cloud, Kubernetes, Terraform, Ansible, Kafka, Argo CD, GitLabCI, Security, ITIL v3, Agile) Design, Architect, Develop, Manage Cloud Native App

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
