2014年10月16日 星期四

[git] Remove last commit from remote repository



git reset HEAD^ # remove commit locally

git push origin +HEAD # force-push the new HEAD commit

Reference:

1.Remove last commit from remote git repository [duplicate]

Related Posts:

0 意見:

張貼留言