delete files with help of .getignore code example Example: delete files with help of .getignore git rm --cached file1 file2 dir/file3