@FakhriAz wouldn’t creating a new branch solve your original problem of being able to create your Wordpress theme using the code you have already created? You can push both the branches to Github.
Use these commands
git branch wordpress-theme
git checkout wordpress-theme
Push the new branch to Github
git push -u origin wordpress-theme
View local and remote branches.
git branch -a