git-ecosystem / git-ecosystem/git-credential-manager
Automatically avoid GUI prompts when run in remote terminal
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.3k
- Forks
- 2.9k
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 14
Description
Feature description
I'm not sure if this is even possible, but can we detect if the parent Git process is being run in a remote terminal without an attached GUI?
The case I'm thinking about is a user who is remoting into a macOS device and their credential prompts are blocking Git commands with a GUI prompt that is not visible to them.
There are workarounds, such as setting credential.interactive=false in the Git config. It would be nice if GCM could detect such a scenario and do the right thing right away.
(I have no idea if the macOS platform or any other platform supports this distinction.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by examining how credential.interactive currently controls prompts and investigate how macOS and other supported platforms distinguish remote terminals from local GUI sessions; done means invisible GUI prompts are avoided without disabling valid interactive authentication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- authentication, cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100