mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Revert "Add list command"
This commit is contained in:
parent
b107c64807
commit
e5d29ecd55
16
README.md
16
README.md
|
@ -102,7 +102,6 @@
|
||||||
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
|
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
|
||||||
* [List only the root and merge commits.](https://github.com/git-tips/tips#list-only-the-root-and-merge-commits)
|
* [List only the root and merge commits.](https://github.com/git-tips/tips#list-only-the-root-and-merge-commits)
|
||||||
* [Merge previous two commits into one.](https://github.com/git-tips/tips#merge-previous-two-commits-into-one)
|
* [Merge previous two commits into one.](https://github.com/git-tips/tips#merge-previous-two-commits-into-one)
|
||||||
* [List of git repositories in multiple directories.](https://github.com/git-tips/tips#list-of-git-repositories-in-multiple-directories)
|
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
|
@ -696,20 +695,5 @@ git log --first-parent
|
||||||
git rebase --interactive HEAD~2
|
git rebase --interactive HEAD~2
|
||||||
```
|
```
|
||||||
|
|
||||||
## List of git repositories in multiple directories.
|
|
||||||
```sh
|
|
||||||
find -E /path1 /path2 /path3 \( -regex '.*/\.git
|
|
||||||
-not -regex '.*/\..*/\.git
|
|
||||||
\) -type d -print0 | xargs -0 -I {} dirname {}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
__Alternatives:__
|
|
||||||
```sh
|
|
||||||
find /path1 /path2 /path3 -regextype posix-egrep \( -regex '.*/\.git
|
|
||||||
-not -regex '.*/\..*/\.git
|
|
||||||
\) -type d -print0 | xargs -0 -I {} dirname {}
|
|
||||||
```
|
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -311,8 +311,4 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Merge previous two commits into one.",
|
"title": "Merge previous two commits into one.",
|
||||||
"tip": "git rebase --interactive HEAD~2"
|
"tip": "git rebase --interactive HEAD~2"
|
||||||
}, {
|
|
||||||
"title": "List of git repositories in multiple directories.",
|
|
||||||
"tip": "find -E /path1 /path2 /path3 \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}",
|
|
||||||
"alternatives": ["find /path1 /path2 /path3 -regextype posix-egrep \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}"]
|
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user