I am learning about git. Issued the following:
git clone https://android.googlesource.com/kernel/goldfish.git
then cd to goldfish, and then issued:
git branch
to see the list of existing branches. But only the "master" branch appears, while on https://android.googlesource.com/kernel/goldfish/ many others are listed.
Now I should checkout the correct branch. This old question has an answer which suggests to issue
git checkout -t origin/android-goldfish-2.6.29 -b goldfish
Things may obviously have changed a lot since, so I need to understand if I have to checkout the "master" branch or if I am missing something. Also, I don't understand the need for the -t and -b options, and for the path.
In summary, should I issue
git checkout master
or anything else?
EDIT
Just had some feedback from #android-root: git branch
lists local branches. To list the remote ones, use git branch -r
. Now I have the correct list. In any case I'd like to know the necessity of the -t and -b options. The parameter after the -t option is not a path, is the name of the branch (it begins by origin/, it seems). But what is the "goldfish" parameter at the end? And shouldn't the branch name follow the -b parameter?