如何在我的Mac上搜索我所有的git存储库? [英] How do I search for all my git repositories on my Mac?

查看:262
本文介绍了如何在我的Mac上搜索我所有的git存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇我在哪里将我的git存储库散布在我的mac上。我试图弄清楚我怎样才能找到他们,以便我可以组织我的生活。我怎么能做到这一点?

Find是你的朋友。 .git文件夹将存在于每个存储库中,因此找到它们的位置将为您提供所有的回购。

  find / Users / username -name.git-print 


I'm curious where I've scattered my git repositories across my mac. I'm trying to figure out how I could do a search to find them all so I can organize my life a bit. How can I do this?

解决方案

Find is your friend. a .git folder will exist in each of your repositories so finding the location of them will give you all your repos.

find /Users/username -name ".git" -print

这篇关于如何在我的Mac上搜索我所有的git存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆