Say you are working on a branch and you come up with an interesting behavior that you want to archive as an experimental branch. What is the cleanest way to do this?
The cleanest way I can think of from my head:
1) Make a backup of your local version to another directory.
2) git to return to the last commit
3) git branch_name, enter a new branch
4) git check instance_name, switch to a new branch
5) Copy your backup to the git working directory.
6) git commit, transfer a new fantastic experimental branch
source share