I have a PHP framework versioned with GIT and I\'m planning several (drastic) changes to its core.
What I want to do is to start working on the new core in a new br
What you can do is simply moving to a new branch, git co -b my_new_branch, clean up your code and keep the things you need, and finally commit. That commit, the first on my_new_branch, would then be a clean one.
git co -b my_new_branch
my_new_branch