git - How to remove commit remotely after another commits -
a git status
gives me this:
commit xxxxx author: aaaa date: thu feb 4 16:47:06 2016 -0500 commit yyyyy author: bbbb date: thu feb 4 16:47:05 2016 -0500 commit zzzzz author: cccc date: thu feb 4 16:47:04 2016 -0500
i want remove changes introduced yyyyy
, is, want keep changes introduced xxxxx
.
you can revert changes introduced commit:
git revert yyyyy
this create new commit, preferred on doing rebase if have pushed changes long-living remote branch (such master
).
Comments
Post a Comment