重命名后如何让github遵循目录历史记录? [英] How to make github follow directory history after renames?

查看:20
本文介绍了重命名后如何让github遵循目录历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目录重命名后,git log"不再显示其历史记录,除非您使用git log --follow"强制它.

Once a directory is renamed, "git log" no longer shows its history, unless you force it to, by using "git log --follow".

有没有办法强制 GitHub Web UI 上的history"功能使用--follow"?

Is there a way to force the "history" function on the GitHub web UI to use "--follow"?

或者 - 有没有任何方法可以在 GitHub 上查看重命名前的历史记录?

Alternatively - is there any way to see pre-rename history on GitHub?

推荐答案

这是在 2009 年提出的要求 (请求 129),然后在 2010 年(请求 897):

This was requested in 2009 (Request 129), and then in 2010 (Request 897):

我喜欢这个.
可能还有其他问题阻止我们将 --follow 参数放入.
我去看看然后告诉你.

I like this.
There could be other issues preventing us from plopping the --follow argument in.
I'll take a look and let you know.

...然后暂时没有.

注意:Git 2.6+(2015 年第 3 季度)将在命令行中提出:参见为什么 git log 不默认为 git log --follow?"

Note: Git 2.6+ (Q3 2015) will propose that in command line: see "Why does git log not default to git log --follow?"

注意:Git 2.6.0 已经发布并且包含了这个特性.可以通过将 log.follow 配置选项设置为 true 来启用日志命令中的以下路径更改:

Note: Git 2.6.0 has been released and includes this feature. Following path changes in the log command can be enabled by setting the log.follow config option to true as in:

git config log.follow true

这篇关于重命名后如何让github遵循目录历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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