Skip to content

Instantly share code, notes, and snippets.

@vyasriday
Created November 21, 2020 14:42
Show Gist options
  • Select an option

  • Save vyasriday/0f03cb68f8962e701d42d9dac86c7b28 to your computer and use it in GitHub Desktop.

Select an option

Save vyasriday/0f03cb68f8962e701d42d9dac86c7b28 to your computer and use it in GitHub Desktop.
Command to revert a specific file to a specifc commit

to see all the commits

git log --oneline

checkout specific file revision from a specific commit

git checkout commit-hash filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment