← 返回事件
降温中体育

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

发生了什么

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.

摘要由 AI 依据下方来源生成,不含推测

为什么在扩散

  • 仅讨论只有社区在讨论(1 条),还没有来源证实

时间线

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

来源

社区讨论