[Android]AOSP & stash!

Sue Chi
1 min readAug 25, 2020

Although as google’s Source Control Workflow documented the SOP flawlessly.

from Google Flow

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.

And once again the day is saved thanks to the Powerpuff Girls!

--

--

Sue Chi

I think; therefore I am. Cogito, ergo sum. No basic, no magic. When you want something, all the universe conspires in helping you to achieve it.