Possible Duplicate:
Git - Create a branch with current changes
I have done a whole lot of work on my project which I realise should have been done on another branch. If I create a branch now, will my current changes need to be checked in, or will they be wiped when the new branch is created? I'm rather new to GIT and am just trying to avoid making a newbie mistake.
If you create a new branch from the current HEAD using:
$ git checkout -b newbranchname
Then changes will NOT be overwritten.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With