リモートブランチ取得

以下で良いのかな。

$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  origin/staging-linus
  origin/staging-next
$ git checkout -t -b staging-next origin/staging-next
Checking out files: 100% (978/978), done.
Branch staging-next set up to track remote branch staging-next from origin.
Switched to a new branch 'staging-next'
$ git branch
  et131x
  master
  patchtest
* staging-next
$

むむ。そして drivers/staging/panel/panel.c の中を見たらこないだの patch が反映されておりました。すばらです。
git log にも残ってるな。gregkh さんの Signed-off-by も入ってます。

ちなみに

リモートブランチ checkout した後の .git/config が以下。

$ cat .git/config 
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
[branch "master"]
        remote = origin
        merge = refs/heads/master
[branch "staging-next"]
        remote = origin
        merge = refs/heads/staging-next
$

この取り組みってどっちかというと git の練習みたいなカンジなんですが。