【发布时间】:2014-05-24 12:36:36
【问题描述】:
根据 git 文档,如果我想将更改保存到新分支,标准产品是
1) git branch new_branch (assuming the branch hasn't been created)
2) git checkout new_branch
3) write new code
4) commit, and it automatically gets put in the new branch
但是如果我按照这个顺序做事呢
1) write new code
2) git branch new_branch
3) ???
我现在如何将新代码保存到新分支?
【问题讨论】:
标签: git version-control git-branch git-commit