See history in GitHub after folder rename

泄露秘密 提交于 2019-12-29 06:35:24

问题


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


回答1:


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




回答2:


You just need a commit before the rename happened. You could retrieve it locally or via the Blame feature.

After you have retrieved the URL of such commit you just need to click History. You will then see all of the commit history of the file before the rename.



来源:https://stackoverflow.com/questions/17213046/see-history-in-github-after-folder-rename

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!