Skip to content

Instantly share code, notes, and snippets.

@Lecarvalho
Created August 26, 2020 22:05
Show Gist options
  • Save Lecarvalho/74bceb22e85005291f1912fea1874614 to your computer and use it in GitHub Desktop.
Save Lecarvalho/74bceb22e85005291f1912fea1874614 to your computer and use it in GitHub Desktop.
revert a modified file from a pull-request - ex: dev web.config :D
git checkout pull-request-branch
git checkout origin/master -- src/main/java/HelloWorld.java
git commit -m "revert a modified file from pull request"
git push origin pull-request-branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment