[HOWTO] Using git for mtd (v3)

David Woodhouse dwmw2 at infradead.org
Sun Apr 23 09:27:26 EDT 2006


On Sun, 2006-04-23 at 14:27 +0200, Jörn Engel wrote:
> 
> 8. Create private tree on pentafluge
> 
>   $ ssh git.infradead.org
>   $ mkdir public_git
>   $ cd public_git
>   $ ln -s ~/public_git
>   $ git clone -l -n -s --bare /home/git/mtd-2.6.git mtd-2.6.git
>   $ chmod og+rx ~ ~/public_git

Edit mtd-2.6.git/description too.

You need to set up a remote branch in your local repository which
matches your new tree on pentafluge, just as you did for the 'mtd'
branch above. Except that this one is for pushing _and_ pulling, of
course:

cat > .git/remotes/mymtd << EOF
URL: git+ssh://git.infradead.org/~/public_git/mtd-2.6.git
Pull: master:mtd
Push: mtd:master
EOF

It's probably easier not to play with branches -- that's fine for people
who want to get clever, but the HOWTO should probably just tell people
to use 'git-clone --reference'; either to clone the mtd-2.6.git tree if
they want a read-only copy of that, or to clone locally on pentafluge
and then git-clone from that if they want their own tree.

> 9. Push to private tree on pentafluge
> 
>   $ git push ssh://git.infradead.org/~/public_git/mtd-2.6.git

git push mymtd

>   http://git.infradead.org/ will index the tree every five minutes via
>   cron. 
-- 
dwmw2





More information about the linux-mtd mailing list