Skip to content

Is there a way to remove a file from a pullrequest? #45226

Discussion options

You must be logged in to vote

For this, You can use this command:

$ git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
$ git push --force

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diegomarty
Comment options

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