3
我想递归清除/重置目录中的所有git存储库。git别名清理/重置目录中的所有存储库
如果我执行下面的命令它按预期工作:
find . -name .git -type d -execdir sh -c "git clean -xdf" \;
我有问题命令转换到一个Git别名:
xxx = "!f() { find . -name .git -type d -execdir sh -c "git clean -xdf" ; ; }; f; "
我试图修正错误,如syntax error near unexpected token
;'`但是我正在一个没有成功的圈子里。
请帮我创建别名。 10X
非常感谢! – mynkow