Git initialisation in site installation

How about to create a respository in github.com ou bitbuket.org with the installation of a wp site (directory public).

Best of all : generate a personal .gitignore ?

(Windows version)