摘要: git init //初始化 git add index.html(文件名) //把指定文件放到暂存区 git add . //所有文件放到暂存区 git commit -m "描述" //提交到本地仓库 git branch //不带参数:列出本地已经存在的分支,并且在当前分支的前面加“*”号标记 阅读全文