Splitting Off a Folder Into Its Own Repo - Git

Background

We had a folder on a project which contains all the front-end code. We wanted this folder to be split off into its own GitHub repo so a new front-end developer, a contractor, wouldn't have access to the back end code. This is the procedure that was done.

Reference


Procedure