Skip to content
DevMeme
4332 of 7590
CLI Post #4735 · source on Telegram

When your clever git alias actually doubles your push time

Description

Screenshot of a tweet on a dark-themed Twitter UI. The tweet, from user “Jiim @devNextDoor”, reads: “i made a terminal alias like: "gpono $1"="git push origin $1 --no-verify" now every time I am about to push I type "git push origi.." and then realise I have an alias, so I delete that and write gpono <branch> thus doubling my time to push. Genius as usual.” The timestamp shows “12:36 AM · Aug 4, 2022 · Twitter for Web App”. Visually it’s white monospaced text on charcoal background, typical of tweet screenshots, with the user’s circular avatar at top left. Technically, the meme jokes about defining a shell alias to shorten the command “git push origin <branch> --no-verify”, but muscle memory makes the developer start typing the long command, delete it, and retype the alias, negating any productivity gain. It highlights CLI workflow habits, Git version-control ergonomics, and the irony of over-optimizing with tooling aliases

Comments

33
Anonymous ★ Top Pick Turns out my 200-line .zshrc is just a distributed cache where every alias is a cold miss - by the time I remember ‘gpono’, git already ran the pre-push hook I was trying to skip
  1. Anonymous ★ Top Pick

    Turns out my 200-line .zshrc is just a distributed cache where every alias is a cold miss - by the time I remember ‘gpono’, git already ran the pre-push hook I was trying to skip

  2. Anonymous

    The classic senior engineer optimization: spending 2 hours automating a 5-second task, then fighting muscle memory for the next 6 months while your alias silently judges you from .bashrc

  3. Anonymous

    The classic developer paradox: spending 10 minutes creating an alias to save 2 seconds, then spending 4 extra seconds every time remembering whether to use the alias or the full command. At scale, this is basically a distributed denial-of-productivity attack on yourself. The real optimization would be a git hook that detects 'git push origi' and autocompletes to the alias, but then you'd spend an hour implementing that to save those 4 seconds. It's technical debt all the way down, except the debt is owed to your own muscle memory

  4. Anonymous

    Git aliases: micro-optimizing the 1% of pushes while macro-sabotaging your daily muscle memory hot path

  5. Anonymous

    Added a git alias for 'git push --no-verify'; accidentally implemented "exactly twice" semantics: type 'git push', backspace, then 'gpono <branch>'

  6. Anonymous

    My gpono alias turned pushing into a two‑phase commit: muscle memory types 'git push origi…', rollback with Backspace, then reissue the alias - latency 2x, hooks still skipped

  7. @zakharov_iphonya 4y

    It's better to use "Oh my zsh" instead of own aliases, imho

    1. @sylfn 4y

      tr: "oh my zsh" helps a lot in situations like this Please use English as main language in this chat

      1. @briskovic 4y

        это че, не бот?

        1. @sylfn 4y

          tr: Isn't this a bot? Please use English as main language in this chat

        2. @sylfn 4y

          yeah i am not a bot

          1. @briskovic 4y

            please make a bot right now

            1. Deleted Account 4y

              i have made a ru to en translator bot some time ago

              1. @sylfn 4y

                what about other languages

              2. Deleted Account 4y

                https://t.me/TransRuEnBot

                1. @feskow 4y

                  oh lol i used it

                  1. @Zhenyokmsk 4y

                    Not bad

    2. dev_meme 4y

      OMZ slows down zsh.

  8. Deleted Account 4y

    let's rewrite it in rust :)

  9. @nicko_dema 4y

    happy to use this: gts - git status gaa - git add --all

    1. @SamsonovAnton 4y

      Do you use git add --all that often to create a shortcut for it? 😳

      1. @RiedleroD 4y

        also why wouldn't you git add -A?

      2. @nicko_dema 4y

        Yea)

        1. @SamsonovAnton 4y

          You got to lay off the coffee, dude!

          1. @nicko_dema 4y

            So if I rapidly corrected three files, why should I list them by name?

  10. @ahmubashshir 4y

    meanwhile I aliased git to g and have a few functions defined(eg. push/pull/clone), now I mistype everywhere else while invoking git...

  11. @theu_u 4y

    The only way I've used aliases is kubernetes namespaces aliasing. And then I've read about k8s context management...

  12. @realVitShadyTV 4y

    Linux moment

  13. @MagikarPoweruh 4y

    I don’t use aliases at all, if you need to type a long command like that you probably already typed it before so just use ctrl+r to search history instead of memorizing weird acronyms that you’ll never use again, fzf does a great job of making history search even faster by allowing you to fuzzy search the command list

    1. @gizlu 4y

      well

      1. @RiedleroD 4y

        ok technically I have custom scripts in PATH for things like this, so ig in some sense I have aliases too.

      2. @MagikarPoweruh 4y

        Just use make if you are going to build your project with so many parameters and options 😅

        1. @gizlu 4y

          The thing is that I don't use it for any particural project. This is incantation enabling shitton of warnings and runtime checkers, I use for debugging one file crap

Use J and K for navigation