Restore deleted or lost files with git @DevLeonardo
Restore deleted or lost files with git  @DevLeonardo
Uploaded February 2024 | Updated November 2026, 3 days ago
❌ Remember that file you deleted last week? Too bad, now you need it.
Let's see how git restore can help you recover it.

There are a few ways to restore deleted files in git, depending on how far away in the history the file was deleted. I’ll cover the most common scenarios and how can you find lost files with git, with the help of `git log` for those cases where you don't exactly remember when it happened.

You might also want to know how to undo a commit: youtu.be/ukx24CtWhms

_______________________________
Hit like and subscribe for more content! :D

Beginner-Friendly Open Source Projects: github.com/DevLeonardoCommunity
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6

You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 Simple case
01:07 Restore from main
01:57 Find the deleted file
02:54 Recover from a commit
04:15 Undo a commit

Sound effects from zapsplat.com

#git
Restore deleted or lost files with gitHow to Review a Pull Request on GitHubA tool for error-free commitsWhy values on my React form do not update?How GitHub Copilot uses MCP Server ToolsRun GitHub Actions locally - act LIVE DEMOA valid alternative to Create React App being Deprecatedcamelize your snake_case APIWhy do we Fork on GitHub?No more commit messagesLong numbers in #javascriptI quit my developer job
Dev Leonardo |

Restore deleted or lost files with git

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER