Adding files to a new repo

cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin master