Claude Code Hang on certain git commands
Resolved 💬 6 comments Opened Feb 26, 2025 by jmaddington Closed Mar 3, 2025
Bug Description
Claude code hangs if a git command times out, at least from inside a docker container. Example:
Bash(git status)…
⎿ On branch main
Your branch is ahead of 'origin/main' by 2 commits.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ../prompts/Keap Base Prompt.txt
modified: tandem/spectacular_schema.yaml
Untracked files:
(use "git add <file>..." to include in what will be committed)
../entrypoint.sh
test_api_call.py
test_api_call_no_id.py
test_company_creation.py
test_fixed_company_creation.py
no changes added to commit (use "git add" and/or "git commit -a")
● Bash(git push origin main)…
⎿ Command execution timed out
Exit code 143
● Let me try again with a shorter timeout:
● Bash(git push origin main)…
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Bash command │
│ │
│ git push origin main │
│ Uploads local main branch commits to remote repository │
│ │
│ Do you want to proceed? │
│ ❯ Yes │
│ Yes, and don't ask again for git push commands in /app/tandem │
│ No, and tell Claude what to do differently (esc) │
│
The UI is completely unresponsive at this point and the only fix is closing out of the terminal.
This happens with other git commands occasionally as well.
Environment Info
- Platform: macos / Docker
- Terminal: iTerm.app
- Version: 0.2.14
- Feedback ID: 9949e30d-5742-4bd4-bcbc-e1dc751af532
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗