Shout out to Josh Comeau for pointing me towards this repo. He popped it in my Twitter feed.
A really cool way to view git history for those that like a nice visual. Slide through the history and see previous changes elegantly slide in.
"Quickly browse the history of any GitHub (GitLab and Bitbucket comming soon)"
pomber / git-history
Quickly browse the history of a file from any git repository
Quickly browse the history of files in any git repo:
- Go to a file in GitHub (or GitLab, or Bitbucket)
- Replace
github.com
withgithub.githistory.xyz
- There's no step three
If you like this project consider backing my open source work on Patreon!
And follow @pomber on twitter for updates.
Extensions
Browsers
You can also add an Open in Git History
button to GitHub, GitLab and Bitbucket with the Chrome and Firefox extensions.
Or you can use a bookmarklet.
javascript: (function() {
var url = window.location.href;
var regEx = /^(https?\:\/\/)(www\.)?(github|gitlab|bitbucket)\.(com|org)\/(.*)$/i;
if (regEx.test(url)) {
url = url.replace(regEx, "$1$3.githistory.xyz/$5");
window.open(url, "_blank");
} else {
alert("Not a Git File URL");
}
}
…Thanks for the interesting project @pomber!
Photo by Nathan Anderson on Unsplash
Top comments (2)
I found this one as well when I was hanging around on github, it is really nice !
Update 2019/02/14: GitHub is a fan.