Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

and the ultimate option for git lg is --reflog. Seeing all branches, even the old ones that do not exist anymore is a eye opening event in discovering the true nature of git: it never changes a commit, ever.


While reflog is amazing, the "ever" in your statement is not true, `git gc` will prune your reflog: https://git-scm.com/docs/git-gc

Most of the time this doesn't matter in practice but you should be aware that unreachable refs don't stay around forever.




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

Search: