Sometimes you want to have a subdirectory on some branch be the root directory of a repository’s master branch.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file.