Monthly Archive for May, 2011

Using Git to split out code into a new repository

OK, so you have a Git repository which has lots of code in there and you want to split a chunk out into its own repository (perhaps to make it a library). It was a while ago now, but I think this is how I did it, thanks to this howto on GitHub. (Suggestions and corrections welcome!)

First, clone the full current repo:
cd
git clone git://myserver/original-repo
cd original-repo

Split out the current code you want into a separate repo – in my case, the directory “directory-I-want-to-split/” (this will remove everything else, leaving just this code in the master branch). Here I’m using the subdirectory filter, but there are a number of others:
git status
git filter-branch --prune-empty --subdirectory-filter directory-I-want-to-split/ master

Push this repo somewhere else, perhaps local (note, you need the file:/// directive):
mkdir ~/split-repo
cd ~/split-repo
git init
git pull file:///home/chris/original-repo

So now that we’ve split that code out into its own repo, let’s remove it from the existing repo.
cd ~/original-repo
git pull
git reset --hard
git filter-branch --force --tree-filter 'rm -rf directory-I-want-to-split' HEAD

Now clone this into a new, smaller repo (can do magic with unpacking I guess, but this seems easiest way to reduce the size after removing that code).
mkdir ~/new-repo
cd ~/new-repo
git clone file:///home/chris/original-repo

Kororaa 14 (Nemo) released!

Kororaa 14 (Nemo) final been released for download, in 32 and 64 bit with KDE and GNOME. This version is recommended for all new installs, however existing Beta 6 users need not reinstall.

Given that there were no major bugs in Beta 6, this month’s update brings the first final release. Work will now begin on a beta 15 Fedora Remix.

New features:

  • Update to KDE 4.6.3

Bug fixes:

  • Nothing noteworthy

We’d love to hear your feedback on the forums, so download it today! :-)

Thanks!

How to run GNOME’s NetworkManager applet under KDE

KDE’s NetworkManager is a nicely integrated plasmoid, however it is missing some features (particularly ones I need to authenticate to University’s network).

It’s easy to swap out KDE’s plasmoid with GNOME’s more fully featured NetworkManager applet. Simply remove the KDE one, install GNOME’s one, tell it to start on login, then just log out and back in!

Remove and install:
sudo yum erase kde-plasma-networkmanagement
sudo yum install NetworkManager-gnome

Then go to System Settings, load Startup and Shutdown module to add the applet to Autostart. Simply click Add program and type:
nm-applet --sm-disable

Log out and back in and you’re away!