Y
Hacker News
new
|
ask
|
show
|
jobs
by
AlexCoventry
2439 days ago
How do you surface them when you need them, though? git grep?
2 comments
JeffRosenberg
2439 days ago
Git greps work if you're trying to search all the logs. I would think this detailed documentation would be most important when you're trying to understand a specific file or line of code. In that case, it's:
- git blame (who wrote this?)
- git show (look at the commit surfaced by blame)
link
esotericn
2439 days ago
Sure? Or 'git log', then use the pager to search, or pipe into something with better fuzzy search, etc?
link
- git blame (who wrote this?)
- git show (look at the commit surfaced by blame)