4 ms·
`git log -p` is my favorite obscure git command. Shows you commit by commit changes. If you specify a path, it limits to only those files. If you do a single fi
by war1025 8y ago
`git log -p` is my favorite obscure git command.
Shows you commit by commit changes. If you specify a path, it limits to only those files. If you do a single file you can do `git log -p --follow <file_path>` and it will track the file across moves and renames.
Also `git whatchanged` is a super helpful command to see just the list of files that changed in each commit
- rachelmcarmena 8y agoI didn't know "whatchanged", thanks! However, look at the description: https://git-scm.com/docs/git-whatchanged https://git-scm.com/docs/git-whatchanged
- war1025 8y agoYea. It's technically deprecated, but it is also super useful so I don't see any reason not to use it.
- LyndsySimon 8y ago`git add -p` is also very, very useful. I use it all the time, to the point that I've aliased it to `a`. If you're interested, here's my .gitconfig, including all of my aliases: https://gitlab.com/lyndsysimon/dotfiles/blob/master/git/gitconfig https://gitlab.com/lyndsysimon/dotfiles/blob/master/git/gitc...
- tome 8y agoYikes, do people consider `git log -p` obscure? I can't live without it!