how to check that git init is initialized or not code example
Example: git init
cd /path/to/my/codebase
git init
git add .
git commit -m "my comment"
cd /path/to/my/codebase
git init
git add .
git commit -m "my comment"