参考Stackoverflow¶
通过如下命令显示最近的上传情况¶
git rebase -i HEAD~3
将会显示最近的2个上传,也可以显示任意个,如HEAD~10
¶
pick d877e57 %s
pick f032eda %s
pick e545efa jiali
# Rebase eb78f1f..f032eda onto eb78f1f
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#
再此我想取消,备注为“jiali”的上传,
删除第三行¶
然后通过下面的命令,强制上传即可¶
git push origin +master