"When did I rewrite it?" and
I went to GitHub to see the history of that file.
The file was previously renamed and
The commit I wanted to see seemed to have gone before the renaming.
It didn't show up there.
For example, go to the commit at the time of renaming on GitHub.
From there, I looked at the entire history, went to the previous commit, and then opened the appropriate file
If you look at the history, you can see the previous commit log, but
I find it inconvenient to do that every time.
If you enter the following git command while looking into it
I understand that you can also see the commit log before the renaming, but
Can I also see the commit log before the renaming on GitHub?
git log -- follow file path
I put the instructions on Qiita.
http://qiita.com/7of9/items/1984f3857672a10821f0
The assumption is that you know the commit immediately after rename.
The steps are as follows:
US>1. Go to Repositorygithub
2. Click on the filename (renamed.txt)
3.Click Blame
4. Click the commit just before rename (add3Test)
5.Click View
6.Click Histroy
There are quite a few clicks, so I hope there is a more convenient way.
© 2024 OneMinuteCode. All rights reserved.