git checkout <branch_name> : simple checking out the "branch_name" or switching to the "branch_name". It does not create any new branches.
git checkout -b <branch_name_1> <branch_name_2> : will *create and checkout * a branch "branch_name_1" from other branch "branch_name_2". regards -Dharam On Mon, Dec 26, 2011 at 7:35 PM, Jerome Clarke <sinat...@gmail.com> wrote: > I was browsing around in another group... then I realized I forgot about > the "branch" command > > this is what I did based from another thread I read > > "git branch -a" to see a list of branches > > and then "git checkout remotes/origin/android-samsung-3.0-ics-mr1" > > it's been awhile since I've used git... better re-read some of git book > again... just wondering whats the difference between "git checkout" and > "git checkout -b" :p > > Thanks Dharam > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel