💻 Software
Restore Git from a local copy
Fresh5 days ago
Mar 15, 20264673 viewsConfidence Score0%
0%
Problem
We had a Git repo that was lost when the we forgot to back it up. One of us did a pull right before this happened and therefore has the latest code. Is it possible to rebuild the Git repo from a local copy of the sources? How?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Restore Git from a local copy
Low Risk
Your local copy is a Git repository on its own, containing the entire commit history (although only of the branch). Creating an empty repository in the old location ( ), then running from the local copy should be sufficient.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix