If you only want to list the repositories, this is the easiest solution.
You can write a script to stop traversing into top level Git repos, but if
you want to also find submodules within a repository, that’s not a good
idea. (In this case you also have to drop the -type d filter, as .git in
submodules is actually a file). Dropping -type d is also relevant if you
are working in a detached worktree, too.

On Wed, May 10, 2017, 16:35 Balázs Barcsik <balazs.barc...@gmail.com> wrote:

> It would be great to list all the repositories placed in a folderand
> subfolder.
> What I found is just a workaround :
>
> find . -name .git -type d -prune
> http://stackoverflow.com/questions/11981716/how-to-quickly-find-all-git-repos-under-a-directory
>
> but would be nice to list the repos using git command, like:
> git --list
> I think I dont need to explain why would it be useful..
> What do you think?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to