Git - How to Duplicate a Repository with History ( Full duplicate, no fork)

Опубликовано: 29 Март 2026
на канале: Jason Cheung
55,418
391

How to duplicate a repository and it's history to another new repository. It's a full duplicate / copy, not a fork.

Instructions:
1. Clone the repo with its clone URL `git clone --bare https://gitsite.com/username/reposito...`
If you already have a copy of the repo, skip to next step.
2. CD (Change Directory) into the cloned repo
3. Copy the git clone url of your new repo.
4. Mirror push to the url with `git push --mirror https://gitsite.com/username/duplicat...`

🎵 Track Info
––––––––––––––––––––––––––––––
Cali by Wataboi   / wataboi  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/wataboi-cali
Music promoted by Audio Library    • Cali – Wataboi (No Copyright Music)  
––––––––––––––––––––––––––––––