Skip to content

Git#

Restore file from another commit#

git checkout c5f567 -- file1/to/restore file2/to/restore
git checkout HEAD~2 -- requirements.txt

Ref: 1