摘要:
A. 新建Git仓库,创建新文件夹git init B. 添加文件到git索引git add --- 单个文件添加git add * --- 全部文件添加C. 提交到本地仓库git commit -m "代码提交描述"D. 提交到远端仓库git push origin master***master可以换成你想要推送的任何分支分支:1. 创建一个叫做"lee"的分支,并切换过去git checkout -b lee2. 切换回主分支git checkout master3. 把新建的分支删除git branch -d lee4. 再push分支到远端仓库 阅读全文