重命名文件夹后,在GitHub中查看历史记录 [英] See history in GitHub after folder rename

查看:321
本文介绍了重命名文件夹后,在GitHub中查看历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重命名一个文件夹( git mv foldername newfoldername )后,Github中该文件夹的历史记录消失了。我仍然可以查看文件夹中任何文件的完整历史记录,如果我克隆repro并运行...

  git log  - -follow ./newfoldername/file 

但是有可能获得Github中重命名文件夹的历史记录吗?
这是一个Github问题,git修订历史记录按预期工作。
Thanks

解决方案

我写了一篇


After renaming a folder (git mv foldername newfoldername) the history of this folder in Github has gone. I can still view the full history of any file in the folder if I clone the repro and run...

git log --follow ./newfoldername/file

But is it possible to get history for renamed folders visible in Github? This is a Github question, the git revision history is working as expected. Thanks

解决方案

I wrote a chrome extension to enable this. Source on github.

这篇关于重命名文件夹后,在GitHub中查看历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆