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

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

问题描述

一旦目录被重新命名,git log不再显示它的历史记录,除非你强制使用git log --follow。

有没有办法强制GitHub网页界面上的历史功能使用 - follow?



或者 - 是否有 >在GitHub上查看预重命名历史记录的方式?

解决方案

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


我喜欢这个。

可能有其他问题阻止我们在中追踪参数。


我会看看并让你知道。


...然后现在就没有了。






注意:Git 2.6+(Q3 2 015)会建议在命令行中:参见为什么git log不会默认为 git log --follow






注意:Git 2.6.0已发布并包含此特征。

  git config log(日志记录命令)中的路径更改可以通过将log.follow config选项设置为true来启用。 。以下为真


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

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

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

解决方案

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

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.

... and then nothing for now.


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


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天全站免登陆