Salman Azmat
Salman Azmat

Reputation: 298

How to get the deleted git repository back?

I've deleted my local repository by mistake, how do I get the files back from remote repository ?

Upvotes: 1

Views: 47

Answers (1)

VonC
VonC

Reputation: 1323095

You could simply clone (git clone) back your repo

git clone /url/of/remote/repo

But that won't include the files that were being modified, or just added to the local index.

Upvotes: 1

Related Questions