Answers for "git remove committed file after push"

2

git remove file from commit

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Posted by: Guest on May-22-2020
-1

how to remove a pushed file from git

git checkout HEAD^ -- /path/to/file
Posted by: Guest on April-07-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language