Initialize Git in a Directory

Make sure git is installed. Then run the below command to initialize.

git init