Skip to content
/ git-history Public
forked from pomber/git-history

Quickly browse the history of a file from any git repository

License

Notifications You must be signed in to change notification settings

ls/git-history

 
 

Repository files navigation

Quickly browse the history of any GitHub (GitLab and Bitbucket coming soon) file:

  1. Replace github.com with github.githistory.xyz in any file url
  2. There's no step two

Try it

If you like this project consider backing my open source work on Patreon!
And follow @pomber on twitter for updates.

Browser Extensions

You can also add an Open in Git History button to GitHub with the Chrome and Firefox extensions.

Or you can use this 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");
  }
})();

There's also a command line version of Git History that works with any local git repo:

You need node to run this

$ npx git-file-history path/to/file.ext

or

$ npm install -g git-file-history
$ git-file-history path/to/file.ext

Sponsors

Become a Sponsor to help us ship more features!

Credits

Based on these amazing projects:

License

MIT

This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with GitHub, or any of its subsidiaries or its affiliates.

About

Quickly browse the history of a file from any git repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.5%
  • HTML 3.2%
  • CSS 1.3%