I need a local repository for tracking my changes and a remote repository containing just some of these files.
I added a parent directory to the project to initialize a local repository and initialized another git in the project dir as another remote repository and published it to GitHub.
.gitignore file of parent repo is empty but .gitignore in child excludes all fies except some specific ones. Parent repository should not use .gitignore file of the child repo.
I need local repository to track all files and a remote repository to track just some of them. The problem is that parent repository does not include anything inside the project.
I tried this submodule solution but it creates a new folder for new repository instead of using existing one.