您只能以编程方式编辑最后一条提交消息:或者以交互方式随机提交:# Vim opens up,select the commit you want to modify, and change the word "pick" for "edit"
git commit --amend -m "Changinggit
我有两个分支: master我向master提交了一些更改,所以我希望将这些更改带到readcode分支。然后我使用了rebase:First, rewinding head to replay your work on top of it...但我发现我现在不在readcode分支中:* (no branch)