In a C# windows form application, if I want to scan my entire hard drive and locate all of the git repositories that were created using "git clone [path_to_repository]". Of course I know where they all are already - I want to find the same repos programmatically. -- how would this best be done?
When a "git clone ..." command is run, are there always certain files created? Tell-tale ways to know a folder is a repo?
Is the presence of a hidden ".git" folder enough to pretty much a "guarantee" that I am inside a repository?
Please provide working C# source code.