I have a project directory that has been version controlled with git
and pushed to Github. It is also backed up to OneDrive. My computer died and I downloaded my project from OneDrive and kept working on it, but did not initialize a git
repository. Now I want to reconnect the local project directory to the remote repository without overwriting my local changes. i.e., I want to initialize a local repository, commit my new changes, and have my local changes take precedent over the Github versions, but I want to keep the version history from before my computer died.
What's the best way to do that?
Thank you!