Difference between starting repo and git check -b

Performing some work in the Android kernel. I am very familiar with git, but not very familiar with repo, so I read the following document: http://source.android.com/source/version-control.html . As far as I understand, as well as experimenting with branches, it repo start BRANCH_NAMEmatches git checkout -b BRANCH_NAME. Am I right in my understanding, or are there some subtle, important details that I miss?

+5
source share
2 answers

Looking at the start.pysource code to run the repo, I find that the main difference is managing a href = "http://developer.android.com/guide/topics/manifest/manifest-intro.html" rel = "nofollow noreferrer"> manifest files that are included in Android projects.

starts a new development branch, starting with the version specified in the manifest.


To add an answer to Trevor Johns , you need to check " How to make an existing Git tracking branch a remote branch? " (If you are not using ):repo start

git checkout -b newBranch -t aosp/master

This will result in deletion and merging ( -t= "track") in the configuration associated with the new branch.

git checkout -b ( - )

+2

, repo start remote merge .git/config:

[branch "YOUR_BRANCH_HERE"]
    remote = aosp
    merge = master

, , repo upload , , .

( , --all, .)

+4

All Articles