git-history README

The project's README from github.com/pomber/git-history. As one markdown file: README.md.

demo

Git History

Quickly browse the history of files in any git repo:

  1. Go to a file in GitHub (or GitLab, or Bitbucket)
  2. Replace github.com with github.githistory.xyz
  3. There's no step three

Try it

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

Local Repos

You can use Git History for local git repos with the CLI or with the VS Code extension.

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]

selefra

Backers

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

Thanks

Browser testing via LambdaTest

Credits

Based on these amazing projects:

License

MIT

git-history (pomber/git-history)

Searching Database…

这是什么?Git History 是一款免费工具,可以快速查看 git 仓库里任意文件的历史记录——你能一版一版地看到这个文件是怎么一步步改过来的。
它只是一个网站,还是有可以安装的版本?还有别的形式:Chrome 和 Firefox 浏览器扩展(或者一个书签小工具)会在 GitHub、GitLab 和 Bitbucket 页面上加一个 'Open in Git History' 按钮;本地仓库则可以通过命令行工具或 VS Code 扩展来查看。
在 GitHub 上怎么用它查看文件的历史?在 GitHub、GitLab 或 Bitbucket 上打开那个文件,然后把网址里的域名换掉:github.com 改成 github.githistory.xyz。就这么简单。
用网页版需要安装什么吗?不用——不用安装任何东西,也不用注册账号,全程只需要在浏览器里改一下网址。
如果我的仓库在本地或者托管在别的地方呢?本地 git 仓库可以用命令行工具和 VS Code 扩展来查看。至于托管在网上的仓库,README 里只提到了 GitHub、GitLab 和 Bitbucket,其他平台没有提及。
它收费吗?完全免费——项目采用 MIT 许可证,作者改为通过 Patreon 和 GitHub Sponsors 接受大家的支持。
历史记录的界面长什么样?它会像动画一样逐个提交回放文件内容,并带有语法高亮:这个网页应用是用 React 和 rebound 弹簧动画库开发的,用 Prism 做语法高亮,用 jsdiff 处理行级改动,配色基于 Night Owl 主题。
能浏览整个仓库吗,还是只能看单个文件?只能按文件来看:你打开一个文件,然后逐步查看它的历史。README 里没有提到查看整个仓库的图谱或分支视图的功能。
我可以支持这个项目吗?可以——README 里邀请大家通过 Patreon 支持作者的开源工作,还设有赞助者板块,并引导你去 Twitter 上关注 @pomber 获取最新动态。
Creator
pomber
Size
32.4 MB
Stars
13.7K
Updated
CommitOct 10
Age
7y
Commits · 90 Days