Once you have crated and cloned an empty GIT repository, got in the directory and do the following

git init

then add something to it (e.g., the .gitignore file), and then commit

git add .gitignore
git commit -a

and make sure to setup the master branch with

git remote add origin git@git.yourserver.com:project
git push -u origin master

Done!