To clone the master development repository, install git, and run:
git clone git://github.com/torvalds/linux.git v4l-dvb
cd
v4l-dvb
git remote add linuxtv git://linuxtv.org/media_tree.git
git
remote update
git checkout -b media-master remotes/linuxtv/master
If you want to clone a different repository, just replace the URL at the
git remote add
line above.
In order to update your repository, you should do:
git pull . remotes/linuxtv/master
And to put your work on top of a stanging branch:
git rebase remotes/linuxtv/master
原文地址:http://www.cnblogs.com/soc-linux-driver/p/3746532.html