I started to code with a previous written code from someone else, but I didn't initiate any git repository at the moment. I still have access to the files made by this other person. I would like to use git to help to compare the initial code and the changes I've made so far. Any idea of how is the best way to do that? Is it necessary to create a git rep or is there a simpler way?
A more general question should be: How to initiate a git repository on an existing folder which has similar code to origin (supposing I initiate a rep with the unchanged code) and then commit your changes merging the similar code as it was part of the remote without losing the changes you made?
Would creating another branch and making a PR to the main with the unchanged code be the best choice?