3 ms·
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
by gallier2 5y ago
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.
- azundo 5y agoWhile reflog is amazing, the "ever" in your statement is not true, `git gc` will prune your reflog: https://git-scm.com/docs/git-gc 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.