D
D
Dima Sokolov2017-09-05 07:45:54
git
Dima Sokolov, 2017-09-05 07:45:54

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

2 answer(s)
D
DevMan, 2017-09-05
@dimka11

если ты грохнул папку гита со всей историей, ты уже никак её не восстановишь, если она до этого не была залита куда-то.

Владимир Куц, 2017-09-05
@fox_12

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 question

Ask a Question

731 491 924 answers to any question