Skip to content

Instantly share code, notes, and snippets.

View ArthurSonzogni's full-sized avatar
🎯
Focusing

Arthur Sonzogni ArthurSonzogni

🎯
Focusing
View GitHub Profile
@smola
smola / git-find-roots
Created January 18, 2017 09:23
Find all initial commits and the commits where they were merged
#!/bin/bash
#
# git-find-roots finds every commit with no parent (initial commits)
# and the commit where they were merged.
#
# Usage:
# git-find-roots [commit-ish]
#
# Example:
# git-find-roots master