這篇不想寫(xiě)了俩檬,直接看http://www.cnblogs.com/Chenshuai7/p/5486278.html
簡(jiǎn)單說(shuō),就是先在GitHub上點(diǎn)擊create repository按鈕
在項(xiàng)目目錄下打開(kāi)Git Bash
首先配置自己的身份把将,這樣在提交代碼的時(shí)候就能知道是誰(shuí)提交的
輸入git config --global user.name "名字"
git config --global user.email "郵箱地址"
git init
git add .
git commit -m "First commit"
輸入GitHub給你的推送地址
git push origin master
輸入GitHub用戶(hù)名和密碼
等待推送完成