如何从忘记 `repo start` 中恢复?

How to recover from forgetting `repo start`?

如果我正在处理 Android 更改并且我 git commit 但忘记先 repo start,我该如何从中恢复以便我可以 repo upload我的零钱?

追溯 repo start new-branch-name:

git checkout -b new-branch-name
git branch --set-upstream-to aosp/master
repo upload .