Skip to content

Instantly share code, notes, and snippets.

@danpoynor
Last active July 1, 2020 20:07
Show Gist options
  • Save danpoynor/a037c25c4894900ac1d3e9c51573a3dd to your computer and use it in GitHub Desktop.
Save danpoynor/a037c25c4894900ac1d3e9c51573a3dd to your computer and use it in GitHub Desktop.
Git command to revert a file in the current working branch to the original version in master
git checkout origin/master -- path/to/file.cshtml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment