git - Uncommit all commits in current branch but leave all changes at the current state -


i have branch a in repo 10 commits. want find way delete commits leave changes in current branch (so state of code same commits in a gone). purpose can go on changes , cerry pick once want , structure better commit messages before merge master. flow possible?

git reset master change head , index same state master, leave working tree untouched (e.g. current state).


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -