git上傳項目到github

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/focusor/focusor.github.io.git
git push -u origin master

 如果報 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to ''錯誤

git pull --rebase origin master

 git push -u origin master

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章