Skip to content

Instantly share code, notes, and snippets.

Jason Hitesman jhitesma

Block or report user

Report or block jhitesma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@geeknam
geeknam / git_history.php
Created May 8, 2011
Parse git log with PHP to an array
View git_history.php
<?php
// Author: Ngo Minh Nam
$dir = "/path/to/your/repo/";
$output = array();
chdir($dir);
exec("git log",$output);
$history = array();
foreach($output as $line){
if(strpos($line, 'commit')===0){
You can’t perform that action at this time.