2019-02-06 02:45:39 +03:00
< div align = "center" >
2019-03-19 05:33:16 +03:00
< a href = "https://github.githistory.xyz/torvalds/linux/blob/master/kernel/up.c" >
< img alt = "demo" src = "https://user-images.githubusercontent.com/1911623/54575634-9b10b000-49d3-11e9-8a19-56e40636e45d.gif" width = "600" / >
2019-02-06 02:45:39 +03:00
< / a >
< / div >
2019-02-05 00:01:14 +03:00
2019-02-08 08:48:57 +03:00
# [Git History](https://githistory.xyz)
2019-03-19 05:33:16 +03:00
Quickly browse the history of files in any git repo:
2019-02-08 08:48:57 +03:00
2019-03-19 05:33:16 +03:00
1. Go to a file in **GitHub** (or **GitLab** , or **Bitbucket** )
1. Replace `github.com` with `github.githistory.xyz`
1. There's no step three
2019-02-08 08:48:57 +03:00
[Try it ](https://github.githistory.xyz/babel/babel/blob/master/packages/babel-core/test/browserify.js )
2019-02-28 07:37:09 +03:00
> If you like this project consider [backing my open source work on Patreon!](https://patreon.com/pomber)
> And follow [@pomber](https://twitter.com/pomber) on twitter for updates.
2019-03-19 05:33:16 +03:00
## Extensions
### Browsers
2019-02-28 07:37:09 +03:00
2019-03-17 08:19:19 +03:00
You can also add an `Open in Git History` button to GitHub, GitLab and Bitbucket with the [Chrome ](https://chrome.google.com/webstore/detail/github-history-browser-ex/laghnmifffncfonaoffcndocllegejnf ) and [Firefox ](https://addons.mozilla.org/firefox/addon/github-history/ ) extensions.
2019-02-08 08:48:57 +03:00
2019-03-17 08:19:19 +03:00
< details > < summary > Or you can use a bookmarklet.< / summary >
2019-02-26 18:14:59 +03:00
2019-02-24 03:18:22 +03:00
```javascript
2019-02-26 18:14:59 +03:00
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");
2019-02-24 03:18:22 +03:00
}
2019-02-26 18:14:59 +03:00
})();
2019-02-24 03:18:22 +03:00
```
2019-03-17 08:19:19 +03:00
< / details >
2019-03-19 05:33:16 +03:00
### Local Repos
2019-02-11 21:40:28 +03:00
2019-03-19 05:33:16 +03:00
You can use Git History for local git repos with the [CLI ](https://github.com/pomber/git-history/tree/master/cli ) or with the [VS Code extension ](https://marketplace.visualstudio.com/items?itemName=pomber.git-file-history ).
2019-02-11 21:40:28 +03:00
2019-03-19 05:33:16 +03:00
## Support Git History
2019-02-11 21:40:28 +03:00
2019-03-17 08:19:19 +03:00
### Sponsors
2019-02-12 22:23:06 +03:00
2019-03-17 08:19:19 +03:00
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor ](https://opencollective.com/git-history#sponsor )]
2019-03-02 21:00:47 +03:00
2023-03-23 14:26:02 +03:00
< a href = "https://github.com/selefra/selefra" target = "_blank" > < img src = "https://github.com/selefra.png" style = "border-radius: 50%" alt = "selefra" title = "Selefra" width = "100" > < / a >
2019-03-17 08:19:19 +03:00
< a href = "https://opencollective.com/git-history/sponsor/0/website" target = "_blank" > < img src = "https://opencollective.com/git-history/sponsor/0/avatar.svg" > < / a >
2019-03-02 21:00:47 +03:00
### Backers
Thank you to all our backers! 🙏 [[Become a backer ](https://opencollective.com/git-history#backer )]
< a href = "https://opencollective.com/git-history#backers" target = "_blank" > < img src = "https://opencollective.com/git-history/backers.svg?width=890" > < / a >
2019-03-17 08:19:19 +03:00
### Contributors
2019-03-02 21:00:47 +03:00
2019-03-17 08:19:19 +03:00
This project exists thanks to all the people who contribute.
< img src = "https://opencollective.com/git-history/contributors.svg?width=890&button=false" / >
2019-03-02 21:00:47 +03:00
2019-10-15 06:39:29 +03:00
### Thanks
< a href = "https://www.browserstack.com/" > < img src = "https://user-images.githubusercontent.com/1911623/66797775-4d651300-eee2-11e9-9072-ef1dc670af1d.png" width = "250" height = "auto" / > < / a >
[BrowserStack ](https://www.browserstack.com/ ) for letting open source projects use their services for free. Now I can test, debug and fix Safari issues from my Chrome running on Linux!
2019-03-17 08:19:19 +03:00
### Credits
2019-03-02 21:00:47 +03:00
2019-03-17 08:19:19 +03:00
Based on these amazing projects:
2019-03-02 21:00:47 +03:00
2019-03-17 08:19:19 +03:00
- [Prism ](https://github.com/PrismJS/prism ) by [Lea Verou ](https://twitter.com/leaverou )
- [jsdiff ](https://github.com/kpdecker/jsdiff ) by [Kevin Decker ](https://twitter.com/kpdecker )
- [Night Owl ](https://github.com/sdras/night-owl-vscode-theme ) by [Sarah Drasner ](https://twitter.com/sarah_edo )
2019-03-02 21:00:47 +03:00
2019-02-08 08:48:57 +03:00
## License
MIT