Skip to content

Instantly share code, notes, and snippets.

View sevaho's full-sized avatar

Sebastiaan Van Hoecke sevaho

View GitHub Profile
@sevaho
sevaho / git_history_generator.sh
Created October 14, 2019 14:25
HISTORY.md generator, forgot to initiate a history file? well this is a small script that does it for you!
#!/bin/bash
tag_list_sorted=`git --no-pager tag --sort=-creatordate`
array=(${tag_list_sorted// / })
length_of_tags_min_1=$((${#array[@]}-1))
for (( c=$length_of_tags_min_1; c>0; c-- ))
do
l=`git log -1 --format=%ai ${array[(($c - 1))]}`