Github blocked push due to secrets

It was right, my rest.http file was misspelt in my gitignore. But now it's correct and git is still blocking me, I'm assuming because the file is in an older commit? Does anyone know how I can solve this please? Thanks
1 Reply
vince
vince7mo ago
Could you be a bit more specific in the issue? You can use git rm --cached <file> or git rm -r --cached <folder> which will delete it from the git history. From there, you should be able to push it to your remote repository without conflicts
Want results from more Discord servers?
Add your server