Hacker News new | past | comments | ask | show | jobs | submit login

> 2. History - How can I go through a file to see its history? "git show REV"? What if I want a wikipedia style history? What if I want to go through the history of a file? There should be something like "git history main.c"

    git log --stat --patch -- main.c



Make that an alias:

    git config --global alias.history "log --stat --patch --"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: