cd /project/directory/

git init

git add somefile.ext

git commit -m ‘Initial commit.’