Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@trackger
Copy link

trackger commented Aug 21, 2018

This was very helpful!

@kdeng00
Copy link

kdeng00 commented Aug 20, 2020

Saved me from reading the git docs

@half2me
Copy link
Author

half2me commented Aug 21, 2020

Saved me from reading the git docs

lol, was worth the effort then :P

@a2f0
Copy link

a2f0 commented Apr 29, 2022

Champion class git going on here.

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