Git cannot commit/push a directory with a git repository in a sub-directory. The sub-directory with the git repository and the directories below are set to the “master” branch, while the directories above remain set to the new branch. When the top directory is committed, the sub-directory with the git repository appears as an empty file. Even when the subdirectory branch name is changed from master to the new branch and the top directory is re-commited/pushed, the same problem occurs. When the git repository in the sub-directory is removed, e.g. the .git file is removed, and top directory is committed/pushed, the subdirectory has all the sub-directories and files. Steve Edlefsen