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