Last active
June 23, 2022 11:20
-
-
Save AskPascal/3e8072fbaba787c80db701ee7d1128e5 to your computer and use it in GitHub Desktop.
Git: revert files changed in one commit (A) to the state they were in in another commit (B)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout <commitB> $(git diff-tree --no-commit-id --name-only -r <commitA> | grep "_snaps") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment