Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
joatmon-snoo
on Dec 14, 2016
|
parent
|
context
|
favorite
| on:
Git Cheat Sheet
> 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
Ajedi32
on Dec 14, 2016
[–]
Make that an alias:
git config --global alias.history "log --stat --patch --"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: