Archive for December, 2009

How To Recover Deleted Subversion Branch

Wednesday, December 9th, 2009 by Jesper Rønn-Jensen

I recently deleted a branch from our (svn) code repository. Did you know that it’s the general recommendation to delete a branch after a merge to ensure that nobody commits to it. (see svnmerge wiki for more on that advice) Svn checkout, svn info, etc. all fail when you try to access the deleted branch […]

How To add “Open folder in Textmate” to Finder Context Menu

Tuesday, December 8th, 2009 by Jesper Rønn-Jensen

I wanted to add a menu item in Finder’s context menu that would open the selected folder in Textmate. A google search suggested the method described by K. Adam Christensen on his blog: “Opening a directory in TextMate from Finder“. However, from the documentation, I learned that that method is now outdated. Snow Leopard users […]

How to make Git ignore files that already exist in your project

Monday, December 7th, 2009 by Jesper Rønn-Jensen

For a project I’m working on, I had to change some files with personal settings, and the files kept showing up with a git status. Adding files to .gitignore that are already tracked does not work. (and it’s actually pretty well documented in the documentation). In stead, it’s possible to use this command: git update-index […]

Run Tiny Webserver From Any Directory

Tuesday, December 1st, 2009 by Jesper Rønn-Jensen

There are alternatives to Resolve Symlinks When Copying Files With Rsync . How about firing up a (tiny) webserver that starts up quickly. Yehuda Katz suggested this some years ago: Just drop this file in any directory, run the script, and it serves the files. I use this frequently for instance when I need to […]