Doing some work in the Android Kernel. I am very familiar with git, but not extraordinarily familiar with repo, so I read the following document: http://source.android.com/source/version-control.html. To my understanding from it, as well as experimenting around with topic branches, repo start BRANCH_NAME is the same as git checkout -b BRANCH_NAME. Am I correct in my understanding, or are there some subtle, important details that I am missing?
Doing some work in the Android Kernel. I am very familiar with git, but
Share
Looking at the
start.pysource code for repo start, I believe the main difference is in the management of the manifest files which are included in Android projects.To add to Trevor Johns‘ answer, you need to check “How do you make an existing Git branch track a remote branch?” (when you are not using
repo start):That will set remote and merge (
-t= “track”) in the config associated to the new branch.A simple
git checkout -bwouldn’t set anything, and create a purely local branch (without tracking any upstream branch to a remote repo)