[HOWTO] Using git for mtd (v4)
Jörn Engel
joern at wohnheim.fh-wedel.de
Sun Apr 23 09:40:39 EDT 2006
Next version. This time the push should actually work.
1. Clone Linus' tree
$ git clone git://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git mtd
The mtd git server is behind a slow DSL line and does not have
enough network bandwith for people to clone the full tree on a
regular basis.
2. Change into soon-to-be mtd tree
$ cd mtd
3. Setup mtd remotes files
$ vi .git/remotes/mtd_in
URL: git://git.infradead.org/mtd-2.6
Pull: master:mtd
$ vi .git/remotes/mtd_out
URL: ssh://git.infradead.org/~/public_git/mtd-2.6.git
Push: Push: mtd:master
4. Fetch mtd tree
$ git fetch mtd_in
5. Checkout mtd tree
$ git checkout mtd
6. Edit some files
Use your favorite editor. Don't forget to tell git about new files
with "git add".
7. Commit changes
$ git commit -a -s
Don't forget the '-s' part or you have to add the Signed-Off-By:
line yourself.
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
9. Push to private tree on pentafluge
$ git push mtd_out
http://git.infradead.org/ will index the tree every five minutes via
cron.
Jörn
--
The cost of changing business rules is much more expensive for software
than for a secretaty.
-- unknown
More information about the linux-mtd
mailing list