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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -