git init git add . git commit -m "my commit" git remote set-url origin <remote repository URL> // setting // or git remote add origin <remote repository URL> // adding // eventually recommit git commit -m "my 2nd commit" git push -u origin master