← Back to events
CoolingSports

Hacker News user reports accidental repeated 'git' commands and proposes fix

What happened

A Hacker News contributor described the common problem of accidentally typing 'git' multiple times in a terminal, leading to an error message. They mentioned that they often type 'git', pause, and then type a full command like 'git status' afterwards, resulting in 'git git status'. The error output is shown. As a potential solution, the author considered overriding the git binary in the PATH to strip leading arguments that match 'git', allowing the intended command to run.

Summary written by AI strictly from the sources below

Why it's spreading

  • DiscussionCommunity discussion only (1 posts), not yet corroborated

Timeline

  1. Reported accidental repeated 'git' commands and proposed a PATH override fix.Hacker News

Sources

Community