How does git merge projects that are not managed by git with code in github remote repositories?

problem description

the original project is associated with the github remote branch, and one day my .git directory was accidentally lost. I made a lot of changes in the project. I found this problem when I submitted, and how to continue to associate with the remote project to submit without damaging the warehouse records.

Git
Mar.25,2021

find a place to copy the .git directory back, and that's it.


the easiest way is to re-clone, a new branch, a backup branch, and then put the .git directory in your directory. Or re-clone, to create a new backup branch, and then overwrite your files to the clone directory.

Menu