Skip to content

Instantly share code, notes, and snippets.

View james-jenkinson's full-sized avatar

James Jenkinson james-jenkinson

  • United Kingdom
View GitHub Profile
@james-jenkinson
james-jenkinson / git-cheatsheet.md
Last active December 6, 2023 09:25
Git cheatshet

Git Cheatsheet

Reverting a file

git checkout main -- /path/to/file
git checkout other-branch -- /path/to/file
git checkout a1b2c3 -- /path/to/file