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
Post a Comment