https://github.com/pomber/git-history
  
  
    Quickly browse the history of a file from any git repository 
    https://github.com/pomber/git-history
  
animation blame cli commit git github history log text vscode vscode-extension
        Last synced: 6 months ago 
        JSON representation
    
Quickly browse the history of a file from any git repository
- Host: GitHub
 - URL: https://github.com/pomber/git-history
 - Owner: pomber
 - License: mit
 - Created: 2019-02-04T21:00:39.000Z (over 6 years ago)
 - Default Branch: master
 - Last Pushed: 2024-10-10T10:15:02.000Z (about 1 year ago)
 - Last Synced: 2025-05-13T00:11:57.945Z (6 months ago)
 - Topics: animation, blame, cli, commit, git, github, history, log, text, vscode, vscode-extension
 - Language: JavaScript
 - Homepage: https://githistory.xyz/
 - Size: 31.6 MB
 - Stars: 13,615
 - Watchers: 136
 - Forks: 537
 - Open Issues: 93
 - 
            Metadata Files:
            
- Readme: readme.md
 - Funding: .github/FUNDING.yml
 - License: license
 
 
Awesome Lists containing this project
- my-awesome-list - git-history
 - awesome-list - git-history
 - awesome-js-posts - git-history: Quickly Browse the History of any GitHub File
 - jimsghstars - pomber/git-history - Quickly browse the history of a file from any git repository (JavaScript)
 - StarryDivineSky - pomber/git-history
 - my-awesome - pomber/git-history - extension pushed_at:2024-10 star:13.7k fork:0.5k Quickly browse the history of a file from any git repository (JavaScript)
 
README
          
# [Git History](https://githistory.xyz)
Quickly browse the history of files in any git repo:
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
[Try it](https://github.githistory.xyz/babel/babel/blob/master/packages/babel-core/test/browserify.js)
> 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.
## Extensions
### Browsers
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.
Or you can use a bookmarklet.
```javascript
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");
  }
})();
```
### Local Repos
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).
## Support Git History
### Sponsors
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)]
### Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/git-history#backer)]
### Thanks
### Credits
Based on these amazing projects:
- [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)
## License
MIT
        
