首先在github.com 上新建reponsitory 1.cd ./the_project 2.git init 3.git add ./ 4.git commit -m “the info about the commit" 5.git remote add origin the_url_of_remote_repository Done!