all
I have downloaded source code from google android website following google's guide. My purpose is to create a local branch to track remote branch
take framework/media for example, you can see .git under this directory, but when you run
git branch
the output is
*no branch
I crate my local branch using
git checkout -b local
then I have the problem, how can I switch back to track remote branch, I cannot pull updated source code from google for this .git again. There is only one local branch.
I also tried
git remote
and get
aosp https://android.googlesource.com/platform/frameworks/base (fetch)
aosp https://android.googlesource.com/platform/frameworks/base (push)
git branch --track local aosp
but I get the error
fatal: Not a valid object name: aosp
Anybody can give me some advice and guide? thanks very much.