How to Split a Subfolder Into a New Repository

| posted in: github  git  howto 


Recently at work I had to split a sub-folder in a repository into its own repository. I wanted to keep the commit history. My search online led me to Splitting a subfolder out into a new repository on the GitHub Dos site.

The instructions there are very good. In a nutshell what I did was this.

In all the process took about 5 minutes. Not something I’ll do every day, but it is nice to know it is possible.

Author's profile picture

Mark H. Nichols

I am a husband, cellist, code prole, nerd, technologist, and all around good guy living and working in fly-over country. You should follow me on Mastodon.