17
Share your git log commands
(git-scm.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
git log -S'some_string' -pis the one that pays for itself. it finds the commits where that string was added or removed, so you can track down when a function disappeared without reading through history.-Gis the same idea with a regex, matching any changed line.and
git log --follow -p path/to/filekeeps going across renames, which plaingit log filewon't do.