How can I view all the git repositories on my machine?

前端 未结 10 807
南旧
南旧 2020-11-29 21:00

Is there a way in which I can see all the git repositories that exist on my machine? Any command for that?

10条回答
  •  盖世英雄少女心
    2020-11-29 21:33

    For Linux:

    dir="/home/${USER}"
    dir_not="${dir}/miniconda3"
    find /home/aeug -type d -iname ".git" -o -path "${dir_not}" -prune | xargs -0 echo 
    

提交回复
热议问题