Jak sprawdzić, czy git jest zainicjowany, czy nie

git rev-parse --is-inside-work-tree
Thankful Trout