Although as google’s Source Control Workflow documented the SOP flawlessly.
There are still times that we might just start to coding directly in a rush and didn’t notice that we haven’t done the 1st step of the flow SOP…
And after you finished the whole stunning idea inside your head, you got the tragic scene like …
(HEAD detached at 958ec62)
Oops…
Oh my goddess!!! I don’t want to lose my changes, what should I do?!
First, take a deep breath and relax. (exhaling in ~ exhaling out ~)
Second, follow the steps below:
1. git stash
2. repo start master
3. git stash pop
Walla~you just saved your code safe and sound.