Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to remove git history for a file

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #git #history #file
ADD COMMENT
Topic
Name
8+9 =