Create a Git repository in a directory and commit all files. Part of git-extras. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-setup.
git-extras
git setup
git setup path/to/directory