Hypothetical scenario:
By mistake, I've been working away on my 'Main' branch.
What I need to do, is effectively reset my Main branch to a particular changeset - 1001 for example. Changesets after 1001, I want to move to a new branch - 'Dev'
Is this possible?
I come from a git background, so if this were a git repository, I would probably use something like:
git checkout -b Dev 1001 //create branch at 1001
git checkout Main //back on Main
git reset --hard 1000 //reset main to 1000