Settings

Theme

git git git git git

caiustheory.com

41 points by alexmolas · 19 comments

Reader

13 threads
modeless

I need one called "gits" that accepts a command "tatus".

sshine

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.

skrebbel

I 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.
3stacks

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

walrus01

Buffalo Buffalo buffalo Buffalo buffalo?

Subdivide8452

Never had this, but I kinda wanna add the alias just in case now

philipallstar

> See what other git alias’ I have

This should be "aliases".

VCFundedGenYer

Weirdly specific issue exclusive to the author.

docheinestages

Would it work with "giggity" too?

tempfile

It's amazing the lengths people go to in order to avoid typing more carefully.

  • smt88

    “Never make a typo” is not a reasonable expectation for a human user

    • tempfile

      Of course, it would be. Let me know if you see someone with that expectation!

      • smt88

        You when you said that people should type more carefully instead of making tools to prevent mistakes

ggm

Do the exec() tail call?

  • messe

    Exec replaces the current process, so yes[1].

    [1]: Unless git is doing fork()+exec() and then waiting for the exit code.

quietlathe

The exec matters here. Without it each extra git would stack another shell process.

roli64

So this is what people do with their spare time.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection