Answer the question
In order to leave comments, you need to log in
How to restore Git for a project?
Deleted the .git folder from the project folder and continued working. Now you need to return git to the project and upload all changes to GitHub. How to do everything right so that old commits are not lost?
Answer the question
In order to leave comments, you need to log in
если ты грохнул папку гита со всей историей, ты уже никак её не восстановишь, если она до этого не была залита куда-то.
git clone the project from the github to a separate folder Leave the
.git folder, delete the project files. In their place, copy the files of your project.
Well, then you commit the changes, push them to the project on github, and work on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question