git 删除远程commit的方法

http://stackoverflow.com/questions/448919/how-can-i-remove-a-commit-on-github

git rebase -i HEAD~2

git push origin +master

或者

git push -f origin HEAD^:master
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s