Skip to content

Commit eef159c

Browse files
author
servala
committed
Severyanova Marina
1 parent 1c43f07 commit eef159c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

04-unix-cli.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@
1313
git ls-files . --exclude-standard --others -z | xargs -0 -I {} mv {} ~/.Trash/
1414

1515
присылайте пулл реквесты с решением для SVN или с более элегантным подходом.
16+
17+
18+
--> Вот мое решение - во-первых, строим директории, потом туда перемещаем файлы.
19+
git status -s --untracked-files=all --porcelain | sed 's/?? //' | sed 's/\/[^/]*$' | grep '/' | xargs -i mkdir ~/.Trash/{}
20+
git status -s --untracked-files=all --porcelain | sed 's/?? //' | xargs -i mv {} ~/.Trash/{}

0 commit comments

Comments
 (0)