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 / git_history.php
Created May 8, 2011
Parse git log with PHP to an array
View git_history.php
// Author: Ngo Minh Nam
$dir = "/path/to/your/repo/";
$output = array();
exec("git log",$output);
$history = array();
foreach($output as $line){
if(strpos($line, 'commit')===0){
You can’t perform that action at this time.