I just installed Mac OS X Mountain Lion, as an update via the app store. Worked pretty good. After less than 30 min it was installed. Everything worked. I just missed the command line tool git.
To fix that issue I had to install the newest XCode version and XCode command line tools. The XCode command line tools you can install inside from XCode. Just go to preferences and Downloads and then you will see it.
github.com is a pretty good git repository server for open source projects. If you have an account you can add easily a project to your github repo. At first generate the git project by executing this line in your project root:
than add all files from your project to your local git repo:
git add .
Than commit everything to your local git repo:
git commit -m "init"
OK. Now you can connect your local git repo with your remote git repo by github.com
If you want that git is ignoring some files for you you just have to create the “.gitignore” file in your project root. Here you can add all the files you don’t want have in your git repository. For example some meta files from IntelliJ IDEA.