Answers for "which git command can you use to remove a file from git repository without removing it from your file system"

1

removing git from files

find . | grep .git | xargs rm -rf
Posted by: Guest on July-03-2021
0

git remove file from repository

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Posted by: Guest on October-19-2021

Code answers related to "which git command can you use to remove a file from git repository without removing it from your file system"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language