Answer the question
In order to leave comments, you need to log in
Is it possible to switch to a branch and save the changes?
I had to cut a new branch that comes out of the master, but I forgot to switch and started sawing in the old one. When I try to switch to the master, it says that it will lose the changes git checkout master
Answer:
error: Your local changes to the following files would be overwritten by checkout:
project/folder/file.php
Please commit your changes or stash them before you switch branches.
Aborting
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question