Git Tip: Making a git directory into a new repo
Sometimes you want to take a directory from an existing project, and turn it into its own repo. Here is how to do that.
- In the root of the repo, run
git filter-branch — prune-empty — subdirectory-filter <dir> <branch>
In this case, the dir is the…