- Check the changes on a specific function [1]
git log -L :myfunction:path/to/myfile.c
- Reset the commit date to the author date from a certian commit to latest commit
git filter-branch -f --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' <commit>..HEAD
- Restore file from old commit
git checkout <commit> -- <path/to/file>
- Delete files and dirs that are not tracked
git clean -fd
(git clean -i
for interactive delete)