本地创建、修改文档后推送至GitHub仓库的原理与步骤
- 参考blog
- 主要原理:
- working dir->add->index->commit->head
- 主要步骤
- 添加文件到暂存区
git add <file_name>
- 提交文档到head,并加上改动备注信息
git commit -m 'your comment on modification'
- 提交到远端仓库
git push origin set_your_remote_branch_name
- 添加文件到暂存区