Skip to content

Commit 806f890

Browse files
committed
Merge pull request #51 from arrrggghhh/revert-50-listOfRepos
Revert "Add list command"
2 parents b107c64 + e5d29ec commit 806f890

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

README.md

-16
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
103103
* [List only the root and merge commits.](https://github.com/git-tips/tips#list-only-the-root-and-merge-commits)
104104
* [Merge previous two commits into one.](https://github.com/git-tips/tips#merge-previous-two-commits-into-one)
105-
* [List of git repositories in multiple directories.](https://github.com/git-tips/tips#list-of-git-repositories-in-multiple-directories)
106105

107106
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
108107
<!-- @doxie.inject end toc -->
@@ -696,20 +695,5 @@ git log --first-parent
696695
git rebase --interactive HEAD~2
697696
```
698697

699-
## List of git repositories in multiple directories.
700-
```sh
701-
find -E /path1 /path2 /path3 \( -regex '.*/\.git
702-
-not -regex '.*/\..*/\.git
703-
\) -type d -print0 | xargs -0 -I {} dirname {}
704-
```
705-
706-
707-
__Alternatives:__
708-
```sh
709-
find /path1 /path2 /path3 -regextype posix-egrep \( -regex '.*/\.git
710-
-not -regex '.*/\..*/\.git
711-
\) -type d -print0 | xargs -0 -I {} dirname {}
712-
```
713-
714698
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
715699
<!-- @doxie.inject end -->

tips.json

-4
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,4 @@
311311
}, {
312312
"title": "Merge previous two commits into one.",
313313
"tip": "git rebase --interactive HEAD~2"
314-
}, {
315-
"title": "List of git repositories in multiple directories.",
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 {}"]
318314
}]

0 commit comments

Comments
 (0)