Blog Archives

Splitting a repo based on folder?

Posted on December 17, 2016. Filed under: Uncategorized | Tags: , , , |

Splitting a repo based on folder? [reddit] I have a repo that really should have been two different repos. Each project is in it’s own folder though (and I don’t think that no modification was made to both folders at the same time). Is there a way to split out this into two repos? Splitting […]

Read Full Post | Make a Comment ( Comments Off on Splitting a repo based on folder? )

A hack for getting the email address Git will use for a commit

Posted on December 13, 2016. Filed under: Uncategorized | Tags: , |

A hack for getting the email address Git will use for a commit Suppose I have branch topic checked out. It often happens that I want to     git push origin topic:mjd/topic which pushes the topic branch to the origin repository, but on origin it is named mjd/topic instead of topic. This is a good practice […]

Read Full Post | Make a Comment ( Comments Off on A hack for getting the email address Git will use for a commit )

Another Git catastrophe cleaned up

Posted on December 13, 2016. Filed under: Uncategorized | Tags: , , |

Another Git catastrophe cleaned up My co-worker X had been collaborating with a front-end designer on a very large change, consisting of about 406 commits in total. The sum of the changes was to add 18 new files of code to implement the back end of the new system, and also to implement the front […]

Read Full Post | Make a Comment ( Comments Off on Another Git catastrophe cleaned up )

Perl Advent Calendar 2016

Posted on December 5, 2016. Filed under: Uncategorized | Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , |

Perl Advent Calendar 2016 Graphing Moose Classes Automatically – Meta::Grapher::Moose Jingle Refs, Jingle Refs, Jingle all the way – Ref::Util Benchmarking with Bencher – Bencher Yuletide Logging – Log::Any Gathering all the Presents – List::Gather Help Santa Klaus Reward Only Nice Children -Schedule::LongSteps Writing git hooks – Git::Hooks Geocoding the world at volume with open […]

Read Full Post | Make a Comment ( Comments Off on Perl Advent Calendar 2016 )

Oh shit, git!

Posted on September 9, 2016. Filed under: Uncategorized | Tags: , , , , , , , , |

Oh shit, git! Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can’t search for how to get yourself out of a mess, unless you already know the name of the thing you need to know […]

Read Full Post | Make a Comment ( Comments Off on Oh shit, git! )

Reformatting Your Codebase with git filter-branch

Posted on September 3, 2016. Filed under: Uncategorized | Tags: , |

Reformatting Your Codebase with git filter-branch Git has tonnes of great tools that can be very powerful, filter-branch is another example of this. It can be used for lots of things we won’t explore here — rather we will use it for a very specific use — filtering through the tree.

Read Full Post | Make a Comment ( Comments Off on Reformatting Your Codebase with git filter-branch )

Getting to Travis and GitHub Pages Quickly

Posted on August 13, 2016. Filed under: Uncategorized | Tags: , , , , , |

Getting to Travis and GitHub Pages Quickly Often, when I’m working locally I like to bounce right over to a GitHub repository url to check something. I ended up writing a bit of code to make this easier. While I was at it, I decided it would be nice to have the same thing for […]

Read Full Post | Make a Comment ( Comments Off on Getting to Travis and GitHub Pages Quickly )

git-rebase: Why and How

Posted on May 3, 2016. Filed under: Uncategorized | Tags: , , , |

git-rebase: Why and How git-rebase is probably the most useful intermediate-difficulty tool in Git. I will describe some of its many uses and explain what it is doing and how to use it.

Read Full Post | Make a Comment ( Comments Off on git-rebase: Why and How )

My Workflow for Building Distros

Posted on April 30, 2016. Filed under: Uncategorized | Tags: , , , |

My Workflow for Building Distros This article explains the steps I use to convert a git repo of a Perl module into a new distro.

Read Full Post | Make a Comment ( Comments Off on My Workflow for Building Distros )

Recovering commits with Git

Posted on April 17, 2016. Filed under: Uncategorized | Tags: , , , , , |

Recovering commits with Git Today I did not handle [my commits] with care and commits seemed to be lost. Luckily I found that Git does not delete commits. My lost commits were just not referenced by any branch or tag, but were ‘dangling’. The problem is finding these commits back. Similar content to MJD’s recent […]

Read Full Post | Make a Comment ( Comments Off on Recovering commits with Git )

« Previous Entries Next Entries »

Liked it here?
Why not try sites on the blogroll...