Skip to content

Instantly share code, notes, and snippets.

@half2me
Created July 25, 2018 11:17
Show Gist options
  • Select an option

  • Save half2me/211d1d6b30a074479d181440af56c31f to your computer and use it in GitHub Desktop.

Select an option

Save half2me/211d1d6b30a074479d181440af56c31f to your computer and use it in GitHub Desktop.
Remove file from PR
git checkout pr-branch
git reset origin/master -- /path/to/file
git commit
git checkout -- . # or git reset --hard @
git push
@CourtneyDocs

Copy link
Copy Markdown

Damn, this is the way. Thank you, years later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment