Answers for "how to solve file is pushing to github even though i removed it from commit"

0

how to solve file is pushing to github even though i removed it from commit

# if you want to just remove from latest commit
git rm -r --cached <file/dir>
  
# if you want to remove from all commit history
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD
Posted by: Guest on October-15-2021

Code answers related to "how to solve file is pushing to github even though i removed it from commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language