---
title: "Discussion on \"How to Transfer Git Repository While Keeping Commit History\" | Hashnode"
description: "Discussion on \"How to Transfer Git Repository While Keeping Commit History\". Disclaimer: This approach worked for me, but it may not necessarily be the best technique\n\nStep 1: Create Mirror Clone of Old Repository \ngit clone --mirror - Makes a total copy of the original repo. This includes every reference: remote-tracking bra..."
url: "https://hashnode.com/posts/how-to-transfer-git-repository-while-keeping-commit-history/601d52d91054fa16dadd781e"
---

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

Discussion

# [How to Transfer Git Repository While Keeping Commit History](https://kimberlywan.hashnode.dev/how-to-transfer-git-repository-while-keeping-commit-history?utm_source=hashnode&utm_medium=feed)

Disclaimer: This approach worked for me, but it may not necessarily be the best technique Step 1: Create Mirror Clone of Old Repository git clone --mirror - Makes a total copy of the original repo. This includes every reference: remote-tracking bra...

Feb 5, 2021 · 2 min read · kimberlywan.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#version-control](https://hashnode.com/tag/version-control)

## Written by

[Kimberly ✨](https://hashnode.com/@kimberlywanst)

@kimberlywanst

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

Aspiring web developer

📝 Sharing my journey as an aspiring web developer and documenting for my future self 🌱 Currently learning JavaScript

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
