上傳到github的指令


…or create a new repository on the command line
使用命令行 新建倉庫:
echo "# 項目名" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/賬號名/項目名.git
git push -u origin master

…or push an existing repository from the command line
使用命令行 上傳到已存在的倉庫:
git remote add origin https://github.com/賬號名/項目名.git
git push -u origin master

之後更新代碼可以直接使用git push。

源自github的提示信息,博主記性不好,只是收集起來方便自己看。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章