Readme for using git with linux-omap, version 20111103 1. Install git You can view recent mainline Linux changes at: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=summary And you can view recent omap changes at: http://git.kernel.org/git/?p=linux/kernel/git/tmlind/linux-omap.git;a=summary You can download git from: http://git.or.cz/ To build and install git: $ tar zxf ... $ cd git $ make prefix=/usr all doc $ su # make prefix=/usr install install-doc Replace /usr with the prefix to where you want to install it. 2. Clone linux-omap git tree First cd into some directory where you want to keep your git trees. Then clone linux-omap git tree: $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git or if you're behind a firewall: $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git You may need to export http_proxy environment variable for proxy. 3. Update your local tree Change to linux-omap directory, and then update the tree: $ cd linux-omap $ git pull - You should update your local linux-omap git tree once a day, or when needed. 4. Create your local development branch $ git branch my_branch $ git checkout my_branch 5. Setup your name and email on git $ git config --global user.name "My Name" $ git config --global user.email "myname@domain.com" 6. Commit changes locally $ git status $ git update-index arch/arm/plat-omap/myfile.c $ git commit -s Before commit, $ git diff HEAD will show you what has changed. 6. Sending patches upstream You can either send patches to the mailing list as usual, or just post a link to your git tree where to pull from. After commit, patches are created by $ git format-patch -o abcdef0123456789abcdef0123456789abcdef01