File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -698,15 +698,15 @@ git rebase --interactive HEAD~2
698
698
699
699
## List of git repositories in multiple directories.
700
700
``` sh
701
- find -E ${targetdir} \( -regex ' .*/\.git
701
+ find -E /path1 /path2 /path3 \( -regex ' .*/\.git
702
702
-not -regex ' .* /\. .* /\. git
703
703
\) -type d -print0 | xargs -0 -I {} dirname {}
704
704
```
705
705
706
706
707
707
__ Alternatives:__
708
708
``` sh
709
- find ${targetdir} -regextype posix-egrep \( -regex ' .*/\.git
709
+ find /path1 /path2 /path3 -regextype posix-egrep \( -regex ' .*/\.git
710
710
-not -regex ' .* /\. .* /\. git
711
711
\) -type d -print0 | xargs -0 -I {} dirname {}
712
712
```
Original file line number Diff line number Diff line change 313
313
"tip" : " git rebase --interactive HEAD~2"
314
314
}, {
315
315
"title" : " List of git repositories in multiple directories." ,
316
- "tip" : " find -E ${targetdir} \\ ( -regex '.*/\\ .git$' -not -regex '.*/\\ ..*/\\ .git$' \\ ) -type d -print0 | xargs -0 -I {} dirname {}" ,
317
- "alternatives" : [" find ${targetdir} -regextype posix-egrep \\ ( -regex '.*/\\ .git$' -not -regex '.*/\\ ..*/\\ .git$' \\ ) -type d -print0 | xargs -0 -I {} dirname {}" ]
316
+ "tip" : " find -E /path1 /path2 /path3 \\ ( -regex '.*/\\ .git$' -not -regex '.*/\\ ..*/\\ .git$' \\ ) -type d -print0 | xargs -0 -I {} dirname {}" ,
317
+ "alternatives" : [" find /path1 /path2 /path3 -regextype posix-egrep \\ ( -regex '.*/\\ .git$' -not -regex '.*/\\ ..*/\\ .git$' \\ ) -type d -print0 | xargs -0 -I {} dirname {}" ]
318
318
}]
You can’t perform that action at this time.
0 commit comments