4 ms·
git reflog is hard enough so that I (a software engineer for 12 years and a git user for 10+ years) have to look up its syntax every time I need it.
by leifg 5y ago
git reflog is hard enough so that I (a software engineer for 12 years and a git user for 10+ years) have to look up its syntax every time I need it.
- SamBam 5y agoCan you explain what's tricky about it? For me, I just had to remember that "reflog" was the name for "history." Once I did that, everything else is just regular git commands. Check out a "commit." Revert to a "commit."
- amelius 5y agoI think this is the problem with any command which you only need once in a blue moon. I always forget how to set up networking, because I don't do it often enough.
- juped 5y agoWeird, it has no syntax...
- thewebcount 5y agoI'm not sure what you mean. Typing "git help reflog" brings up a man page that lists commands like "show", "expire", "delete", etc., each with additional options.
- stevenhuang 5y agoBecause the most common usage is to run it with no arguments.
- mattkrause 5y agoI invariably parse reflog as "re-flog." I know isn't the intended meaning but does capture the feeling of needing to use it quite nicely.