Quickly browse the history of a file from any git repository
Go to file
jess 5057637c32
Update readme.md
added badges and credits
2019-03-02 10:00:47 -08:00
cli Bump cli 2019-02-19 16:06:29 -03:00
public Remove script from index.html 2019-02-18 01:29:35 -03:00
src Fix bat 2019-03-01 13:11:55 -03:00
vscode-ext Bump extension to 0.1.1 2019-02-21 16:57:44 -03:00
.gitignore Fix prettier 2019-02-14 14:21:23 -03:00
.travis.yml Add travis config 2019-02-07 18:02:46 -03:00
craco.config.js Move load to web worker 2019-02-28 22:48:26 -03:00
license Update readme and landing page 2019-02-08 02:48:57 -03:00
netlify.toml Add redirect 2019-02-04 20:48:34 -03:00
package.json Added call to donate after npm install (optional) 2019-03-02 09:44:24 -08:00
readme.md Update readme.md 2019-03-02 10:00:47 -08:00
yarn.lock Fix build 2019-02-28 23:57:26 -03:00

Git History

Backers on Open Collective Sponsors on Open Collective

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");
  }
})();

CLI

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

Credits

Based on these amazing projects:

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

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.