revert a file to a specific commit using git

How to git revert a file to a specific commit using git

Assuming your commit id is 8a02c028 git checkout 8a02c028 -- file1/to/restore file2/to/restore

Filed under

Related articles

Level up your Tech Career with DjamgaTech PRO

Download the DjamgaTech PRO App on the Apple App Store to access hundreds of interactive prep questions, flashcards, and quizzes cleanly without ads.

Advertisement
Djamgatech PRO App
Download DjamgaTech PRO on the App Store 🚀

← All articles