GIT Удаление такого файла со странным именем
Здравствуйте!
Не получается удалить файл. Статус выдает такую картинку: $ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: "install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar" no changes added to commit (use "git add" and/or "git commit -a") Пытаюсь удалить разными способами, но безрезультатно: $ git rm install/SQLSRV/"sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar" fatal: pathspec 'install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar' did not match any files $ git rm ""install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar"" bash: syntax error near unexpected token `(' $ git rm '"install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar"' fatal: pathspec '"install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar"' did not match any files $ git rm "install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar" fatal: pathspec 'install/SQLSRV/sqlsrv20 (\320\264\320\273\321\217 PHP 5.2 \320\270 5.3).rar' did not match any files Подскажите, как выкрутиться в этой ситуации? |
Удалось удалить такой командой:
$ git rm "install/SQLSRV/sqlsrv20 (для PHP 5.2 и 5.3).rar" это еще хорошо, что я помню название файла... а что делать, если я название не помнил бы??? |
Магическая команда
git config core.quotepath false покажет нормальное название файла. А еще git clean есть. |
Часовой пояс GMT +3, время: 00:54. |