Github Install couldn't find git repository #3583

Closed
opened 2026-02-16 17:40:45 -05:00 by yindo · 3 comments
Owner

Originally created by @sachyyn on GitHub (Dec 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When trying to opencode github install, I get this error, even though the repo is initialized with git
┌ Install GitHub agent

■ Could not find git repository. Please run this command from a git repository.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @sachyyn on GitHub (Dec 16, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When trying to `opencode github install`, I get this error, even though the repo is initialized with git ┌ Install GitHub agent │ ■ Could not find git repository. Please run this command from a git repository. ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:40:45 -05:00
yindo closed this issue 2026-02-16 17:40:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1361: "opencode github install" is failing with an error about needing to be run in a git repo while in a git repo

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Dec 16, 2025): This issue might be a duplicate of existing issues. Please check: - #1361: "opencode github install" is failing with an error about needing to be run in a git repo while in a git repo Feel free to ignore if this doesn't address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

What output do u have for git remote get-url origin?

@rekram1-node commented on GitHub (Dec 16, 2025): What output do u have for `git remote get-url origin`?
Author
Owner

@rekram1-node commented on GitHub (Dec 16, 2025):

should be fixed in next release by: https://github.com/sst/opencode/commit/3ac42e96326d93d50b681cbae3b92a2ad1841e8c

@rekram1-node commented on GitHub (Dec 16, 2025): should be fixed in next release by: https://github.com/sst/opencode/commit/3ac42e96326d93d50b681cbae3b92a2ad1841e8c
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3583