Accepted answer

Fixed the issue by deleting the .git folder inside the client


On github, you will be able to deploy only the react app. Not your backend. The easiest way is to deploy to a gh-branch branch the dist folder created by create-react-app when you run the build command.

Related Query

More Query from same tag