git revert specific file


this is by far one of the most important command in git and i need to have to here.

c5f567 is the commit number

-- file1/to/restore  is the file u would like to revert for commit above.

git checkout c5f567 -- file1/to/restore file2/to/restore

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type