💻 Software
Revert a deleted file several commits later
Fresh7 days ago
Mar 15, 20264802 viewsConfidence Score0%
0%
Problem
So I started down a new branch of development and decided that some files needed to go. Several commits later I realise that a certain decision was wrong and I need a couple of the files back. My initial thought of how to get the files back is to just take copies from the other branch and commit th…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Revert a deleted file several commits later
Low Risk
I found this solution on another website, but I can't find where. The answer is to revert the files that were deleted individually: where is the revision number of before the delete. Then commit them back in. The history is preserved!
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix