Here's the procedure:
1) Set your local project as a git repository
git init
2) Stage your files:
git add *
3) Create a new repository from you hosting service website (GitHub, BitBucket etc.)
4) Copy the Git URL from the repository you just created
5) Associate the URL to the name "origin":
git remote add origin https://[email protected]/myproject/mygit.git
6) Commit your code:
git commit -m "Initial commit"
7) Push your code:
git push -u origin master
Copyright © 2013 Welcome to the website of Davis Fiore. All Rights Reserved.