I have a git repository call it repoA with 5 projects (or five folders).
Project 1
Project 2
Project 3
Project 4
Project 5
I am currently working on say project 5, a developer on my team has worked on that project, but instead of committing/pushing to our git repo, they have just given me the Project 5 folder directly. I have worked on it, fixed things, its working but now I want to commit this project to the repo but I cannot do so without cloning the entire thing to a local folder then copying the contents of the project 5 folder into that repoA folder (overwriting it) and comitting that one.
The issue is that I do not want to do this for every change because it doesn't make sense. Is there anyway to get around this problem without having to clone the entire repo? I do not want to re-import a project in my IDE.
Can I just create a new branch, commit to project 5 folder from a different local folder (that my IDE has open)?