[HOWTO] Using git for mtd
Jörn Engel
joern at wohnheim.fh-wedel.de
Sat Apr 22 13:11:33 EDT 2006
Next version with the FIXMEs filled in. If anyone has comments, spots
errors, etc., please tell me.
1. Clone Linus' tree
$ git clone git://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git mtd
2. Change into soon-to-be mtd tree
$ cd mtd
3. Setup mtd remotes file
$ vi .git/remotes/mtd
URL: git://git.infradead.org/mtd-2.6
Pull: master:mtd
4. Fetch mtd tree
$ git fetch mtd
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 pentafluge.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
9. Push to private tree on pentafluge
$ git push ssh://pf/~/public_git/mtd-2.6.git
Jörn
--
Victory in war is not repetitious.
-- Sun Tzu
More information about the linux-mtd
mailing list