I would like to know if and how I can create a new branch when I had already committed but not pushed.
Scenario:
- Switch to Master
- Change something
- Commit changes
- Create new Branch instead of Push
Basically I was told that this is not possible and that one has to push before creating a new branch. Since I did two days of work (like 10+ commits) and came to the conclusion that I would rather create a new branch instead of pushing these changes to master (I want to do additional testing prior since the changes became more bigger than anticipated).
Would I need to save all mal files, recheckout the master version I started with, create a new branch from it and restore my changes and recommit or can I just create a new branch which I originally thought (so I did not care at first)?