Posts Tagged ‘svn’

Forgotten Subversion Commands, Undo, Merge Branches and More

Thursday, June 28th, 2012 by Jesper Rønn-Jensen

In a current project I use a lot of Subversion (svn) from the command-line. Subversion recently has lost terrain to Git for several reasons. But actually, svn is capable of doing many of the things I love from Git. Here are some less known commands I find extremely helpful.   Undo last commit svn merge […]

Easy delete all .svn Subfolders in Windows Explorer

Tuesday, March 1st, 2011 by Jesper Rønn-Jensen

I had to repair a flawed Subversion repository recently (not all files were committed). I had my local repository checked out. This was the flawed part, containing only parts of the folders and files it should. Then, I got a zip file from the machine where it was working. Problem: It contained .svn folders from […]

Windows SVN pre-commit-hook

Thursday, June 10th, 2010 by Jesper Rønn-Jensen

At a current project I work on, we use a Windows server to run our subversion repository. I wanted to set up the pre-commit hook so that commits with empty comment are automatically rejected. All commit-hook example files that go with Subversion are written in bash (as unix servers tend to be the normal). Here […]

Importing Existing Git repository into SVN

Wednesday, July 8th, 2009 by Jesper Rønn-Jensen

Many of my colleagues know svn but are in general not (yet) ready jump over to using Git for bigger projects. Today I had to import my existing Git repository into SVN. I had been working locally with a Git repos and wanted to keep my history before giving access to my colleagues. The guide […]

Using Git for SVN Repositories Workflow

Monday, March 9th, 2009 by Jesper Rønn-Jensen

For the last months I have been using Git to work with my Subversion repositories. Besides from reducing disk usage, Git also makes my work slightly faster and independent of network access — I can make commits to repository which is sync’ed later when I get online. One challenge though: Using branches I ran into […]

Using Local File-based Git — Server Laziness

Saturday, February 21st, 2009 by Jesper Rønn-Jensen

My problem this week: I wanted to share some work with a colleague. Unfortunately we have not yet setup our caplab environment with git server. Nor did i want to push this particular project to GitHub or Unfuddle. My alternative was a file-based setup: Each developer’s machine has it’s own Git repository. On my machine […]

Git Side Benefit: Reducing Disk Usage

Saturday, January 17th, 2009 by Jesper Rønn-Jensen

A side benefit of switching from Subversion to Git for source control is that Git does not use shadow files and directories to find out what has changed. I created two checkouts of a svn project — one using traditional svn and one using git (which can actually clone a svn repos — see explanation […]