If you updated a file that already existed and want to remove it from the PR:
Assume you’re working on a branch off of staging
, and you PR’d a file named validate_model.py
.
To remove this file from the PR and revert its changes, simply do:
git checkout staging -- validate_model.py