mkdir test
cd test
git init
把项目粘贴到这个本地Git仓库里面
git status
git add .
git status
git commit -m "注释"
在Github上创建一个Git仓库。
git remote add origin https://github.com/guyibang/TEST2.git
git push -u origin master
更新项目
git status
git add .
git commit -m "本次更新的说明"
git push origin master # 将本地主分支推到远程主分支
网友评论