I had a lot of confusion when I started with Git, but now I love it a lot. One of the main problem that I had was on how to upload an existing project (which was never versioned), to a git repo. Now below are the simple steps. This is based on Xcode projects.

1. Create repo first in Github/ bitbucket.
2. Open commandline and go to the project root directory.
3. Then hit the below commands sequentially
git init
git add -A (Adds all files)
git status
git commit -m “First Commit”
git remote add origin “Github or bit bucket repo link” (without quotes)
git push -u origin master

This would add your existing project into the repo that you created using Github/ bitbucket. Now start cloning from anywhere 🙂