git git git git gitcaiustheory.com 41 pointsalexmolas25 days ago19 commentsSaveHideCopy link On HNComments−modeless25dI need one called "gits" that accepts a command "tatus".−smgpie25dAnd sometimes when I type fast there is "gis tatus"−xtiansimon25dI’m a bad typist, so it’s ‘hoy’ for me.−sshine25dI never have this exact problem.It's rare that my stale prompt has a "git" in it.Most of my git commands have mnemonic aliases like "gs", "gd", "gl".I usually have the problem where a stale "ls" or "vim" inhabits the prompt.−skrebbel25dI recommend also adding this: [alias] really = !exec git This solves the common situation where you could’ve sworn you pushed your worl, but colleague can’t find it regardless. You can then `git really push` to be sure.−3stacks25dIts a weird feeling to see something posted on here and remembering it being posted nearly 10 years agoI think of this every time I write git git status−walrus0125dBuffalo Buffalo buffalo Buffalo buffalo?−Subdivide845225dNever had this, but I kinda wanna add the alias just in case now−philipallstar25dSee what other git alias’ I haveThis should be "aliases".−VCFundedGenYer25dWeirdly specific issue exclusive to the author.−docheinestages25dWould it work with "giggity" too?−tempfile25dIt's amazing the lengths people go to in order to avoid typing more carefully.−smt8825d“Never make a typo” is not a reasonable expectation for a human user−tempfile25dOf course, it would be. Let me know if you see someone with that expectation!−smt8824dYou when you said that people should type more carefully instead of making tools to prevent mistakes−ggm25dDo the exec() tail call?−messe25dExec replaces the current process, so yes[1].[1]: Unless git is doing fork()+exec() and then waiting for the exit code.−quietlathe25dThe exec matters here. Without it each extra git would stack another shell process.−roli6425dSo this is what people do with their spare time.
Comments
I need one called "gits" that accepts a command "tatus".
And sometimes when I type fast there is "gis tatus"
I’m a bad typist, so it’s ‘hoy’ for me.
I never have this exact problem.
It's rare that my stale prompt has a "git" in it.
Most of my git commands have mnemonic aliases like "gs", "gd", "gl".
I usually have the problem where a stale "ls" or "vim" inhabits the prompt.
I recommend also adding this:
This solves the common situation where you could’ve sworn you pushed your worl, but colleague can’t find it regardless. You can then `git really push` to be sure.Its a weird feeling to see something posted on here and remembering it being posted nearly 10 years ago
I think of this every time I write git git status
Buffalo Buffalo buffalo Buffalo buffalo?
Never had this, but I kinda wanna add the alias just in case now
This should be "aliases".
Weirdly specific issue exclusive to the author.
Would it work with "giggity" too?
It's amazing the lengths people go to in order to avoid typing more carefully.
“Never make a typo” is not a reasonable expectation for a human user
Of course, it would be. Let me know if you see someone with that expectation!
You when you said that people should type more carefully instead of making tools to prevent mistakes
Do the exec() tail call?
Exec replaces the current process, so yes[1].
[1]: Unless git is doing fork()+exec() and then waiting for the exit code.
The exec matters here. Without it each extra git would stack another shell process.
So this is what people do with their spare time.