Git PSA: git-rev-parse

Posted on November 30, 2017. Filed under: Uncategorized | Tags: , , |

Git PSA: git-rev-parse Git has a bewildering variety of notations for referring to commits and other objects. If you type something like origin/master~3, which commit is that? git-rev-parse is your window into Git’s understanding of names

Read Full Post | Make a Comment ( Comments Off on Git PSA: git-rev-parse )

Flight rules for git

Posted on November 21, 2017. Filed under: Uncategorized | Tags: , , , |

Flight rules for git What are “flight rules”? A guide for astronauts (now, programmers using git) about what to do when things go wrong. Flight Rules are the hard-earned body of knowledge recorded in manuals that list, step-by-step, what to do if X occurs, and why. Essentially, they are extremely detailed, scenario-specific standard operating procedures. […]

Read Full Post | Make a Comment ( Comments Off on Flight rules for git )

Git bisect and Perl

Posted on August 9, 2017. Filed under: Uncategorized | Tags: , , , , |

Git bisect and Perl git bisect run treats certain exit values specially: 125 means the code cannot be tested, and 128 or higher will abort the bisect process. If Perl throws an exception it exits with 255 (instead of 0 for a pass and 1 for a test fail), aborting the bisect altogether. To fix […]

Read Full Post | Make a Comment ( Comments Off on Git bisect and Perl )

git-refresh

Posted on August 4, 2017. Filed under: Uncategorized | Tags: , , , , |

At @taustation, we use a tool called git-refresh and for months have had a perfectly clean git history. Because I'm sick of this … [messy subway map] — (((CurtisOvidPoe))) (@OvidPerl) August 4, 2017 git-refresh From comments in the above: # Regardless of the branch you are on, this code: # – stashes changes (if any) […]

Read Full Post | Make a Comment ( Comments Off on git-refresh )

Git flow meta page

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

A successful Git branching model by Vincent Driessen [nvie] In this post I present the development model that I’ve introduced for some of my projects (both at work and private) about a year ago, and which has turned out to be very successful. I’ve been meaning to write about it for a while now, but […]

Read Full Post | Make a Comment ( Comments Off on Git flow meta page )

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! )

« Previous Entries

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