Git - how to move last X commits on master to a feature branch? -
let's i'm on master (at c4), , stuff broken working @ commit c1. how can copy commits c4 new branch preserve unstable code, , roll master c1? (this can push github , have continuous deployment push master code live server)
i know first step branch feature off of master is, how roll master commit c1?
git checkout -b holdingbranch
this create new branch based on current master. can roll on master with
git checkout master git reset --hard c1
without affecting new branch , rolling master
Comments
Post a Comment