Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a way to copy a repo without forking but retaining the commit history?

I created a web app template repo that I want to use as the basis for a new project. I don’t want to fork the repo because I don’t want my project to show up as a fork in GitHub and I never intend to submit PRs into the repo I’m using as a template. But I also don’t want to just copy the files because then I’ll lose the commit history.

So, is there a way to copy the repo in such a way that I’m not forking but I’m also retaining the commit history?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Clone it (git clone) and push it to the copy location.

GitHub won’t treat it like a fork unless you go through the fork mechanism.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading