Git extract folder from project with history and tags by Jesper Nov 2

Comments Off on Git extract folder from project with history and tags | Read entire article

`git filter-branch` will extract a folder from a shared repository and rewrite history. This tip shows you by example. And also how to rewrite tags in the new repos.

Continue reading »Git extract folder from project with history and tag...«

Git tip to remove remote branches already merged by Jesper Aug 25

Comments Off on Git tip to remove remote branches already merged | Read entire article

Let’s talk about source control and an efficient way of using Git. I like the projects where you have a `master` branch and a few feature branches, which are actively being worked upon. Only a few branches are present at a given time, and this is less confusing for the contributors in the repository. A […]

Continue reading »Git tip to remove remote branches already merged«

Ruby make list minimum length by Jesper Dec 13

In a Ruby on Rails app, I wanted a list to be at least of two items. This could be done in several ways. Here is a first naïve impementation: # Naïve implementation, just return whatever number I need def sum_up_a(existing) return 2 if existing == 0 return 1 if existing == 1 return 0 end […]

Continue reading »Ruby make list minimum length«

Change history of SVN repository by Jesper Apr 15

Comments Off on Change history of SVN repository | Read entire article

Somebody asked me if it’s possible to change history of an SVN repository like you can do in Git. The easiest parts to change are: commit date commit log message With this, you can easily modify time stamps if, for instance, your svn server clock is wrong. Step 1: Modify repository to accept property changes […]

Continue reading »Change history of SVN repository«

Easter egg CSS circles by Jesper Mar 29

Easter eggs instead of circles on your CSS. It’s easier than I thought.

screenshot-with-easter-eggs-css-cropped

Continue reading »Easter egg CSS circles«

What we have also written...