News for February 2012

git multiple remotes

git has a very undocumented feature which allows you to group multiple remote URLs as a single remote.

This allows you to push to many remote branches in a single command. I prefer using gitweb to browse my repositories, so I push to my own server, but I know that other people like using github, so I may as well push there as well.

To add multiple remote URLs, edit the .git/config file in the repository and add a second (or more) url line.

[remote "origin"]
        url = jmccrohan@git.dereenigne.org:/srv/git/openwrt-packages.git
        url = git@github.com:jmccrohan/openwrt-packages.git
        fetch = +refs/heads/*:refs/remotes/origin/*

Now I can push to both my own server and to github using

git push origin
Posted: February 18th, 2012
Categories: git
Tags: , , ,
Comments: No Comments.

statserial

I found a handy ncurses based serial port debugger recently called statserial. It outputs the status of the serial control lines to the terminal.

Install with:

apt-get install statserial

Run with:

statserial /dev/ttyS0

Posted: February 5th, 2012
Categories: Linux
Tags: , , , , , , , , , , , , , ,
Comments: No Comments.