问题
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