Skip to content

Instantly share code, notes, and snippets.

@james-jenkinson
Last active December 6, 2023 09:25
Show Gist options
  • Save james-jenkinson/3eec494ac7de728585426e1cfbc7a2fd to your computer and use it in GitHub Desktop.
Save james-jenkinson/3eec494ac7de728585426e1cfbc7a2fd to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment