Git for visual studio 2015, delete intermediate commit -


im new using git...while working it, have created intermediate commits in case computer crash or that, have commit history in new branch

frmclients - crud operations final frmclients - crud operations tmp3 frmclients - crud operations tmp2 frmclients - crud operations tmp1 

i know if there way delete intermediate commits (from tmp1 tmp3) , keep last one, didnt merge&push yet server.

doing revert or hard reset wont want. or mayb im using git in wrong way?

rebase friend here:

git rebase -i head~4 

replace second fourth lines starting "pick" "f" "fixup", , you'll end single commit.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -