To push up through a given commit, you can write:
(要通过指定的提交推高 ,你可以这样写:)
git push <remotename> <commit SHA>:<remotebranchname>
provided <remotebranchname>
already exists on the remote.
(提供<remotebranchname>
已存在于遥控器上。)
(If it doesn't, you can use git push <remotename> <commit SHA>:refs/heads/<remotebranchname>
to autocreate it.) ((如果没有,你可以使用git push <remotename> <commit SHA>:refs/heads/<remotebranchname>
来自动创建它。))
If you want to push a commit without pushing previous commits, you should first use git rebase -i
to re-order the commits.
(如果要在不推送先前提交的情况下推送提交,则应首先使用git rebase -i
重新提交提交。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…