Git

How do you know if a certain directory is a git repository?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

You can check if there is a ".git" directory.