A
A
ayapergenov2016-08-31 10:39:07
git
ayapergenov, 2016-08-31 10:39:07

How to restore a deleted GIT repository?

Corrupted project files on local server by accidentally copying project to external media along with .git folder.
In general, the project works, but there were failures when copying and now I would like to be sure that everything is fine on the local version.
The remote repository has the same working copy. The commit is the same.
How to restore an identical version from a remote repository?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-08-31
@ayapergenov

why restore anything? clone the remote and all the cases again.
well, or git reset --hard(if the local git is alive).
It's just that it's not entirely clear from your question: do you want to restore data or just get the last commit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question