Git - Tracking method/function history
The git log command helps us to view the information about previous commits occurred in the project.
The git log command helps us to view the information about previous commits occurred in the project. But do you know, you can see the history of any method/function in your codebase easily with:
A quick example on this command:
Interestingly, if you wish to check the history for some specific number of lines within the file, you can check with:
You can also pass regex to find anything in your codebase files using:
This was originally posted here! 💜