Initialize git in a directory

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

git init