git git git git git

40 points | by alexmolas an hour ago

14 comments

  • modeless 43 minutes ago

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

      smgpie 35 minutes ago

      And sometimes when I type fast there is "gis tatus"

  • sshine an hour ago

    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 34 minutes ago

    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.
  • walrus01 39 minutes ago

    Buffalo Buffalo buffalo Buffalo buffalo?

  • 3stacks an hour ago

    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

  • Subdivide8452 42 minutes ago

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

  • philipallstar 43 minutes ago

    > See what other git alias’ I have

    This should be "aliases".

  • docheinestages 40 minutes ago

    Would it work with "giggity" too?

  • ggm an hour ago

    Do the exec() tail call?

      messe an hour ago

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

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

  • tempfile 39 minutes ago

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

      smt88 37 minutes ago

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

  • roli64 40 minutes ago

    So this is what people do with their spare time.