I started doing work in master – many changes later (no commits) I realized that this work should be done in a separate branch.
Can I create a new branch with my current changes, then discard the changes in master back to its pristine state?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I figured it out.
while on master:
…continue editing – in my case I committed them…
switch back to master
Branch was in original state before I started making all the changes…
Hope this helps somebody else!