A terminal coding assistant does not need a special repository format. If Git has cloned the project and you can open its files, the assistant can work in that directory. Gemini CLI is a useful example of this arrangement: Google authentication supplies model access, while Git continues to manage repository history and publication.
This guide uses a README improvement as the first task. It keeps the setup small and gives you a result that can be checked directly before you move on to application changes.
Install and authenticate Gemini CLI
Prepare a local clone and a contribution branch using Git or GitHub Desktop. Then follow the current prerequisites and installation instructions in the official Gemini CLI getting-started guide. For a machine with the required Node.js and npm environment, the documented npm route is:
npm install -g @google/gemini-cli
Open a terminal in your project and start:
gemini
Choose the appropriate authentication route. The authentication documentation distinguishes Google-account sign-in, Gemini API keys, and Vertex AI. Organizational accounts can require a configured Google Cloud project and appropriate permissions. Follow the route your organization provides rather than substituting a personal account because it appears easier.
Google sign-in does not authenticate GitHub. A successful Gemini conversation and a failed Git push can coexist because they involve different services and credentials.
Confirm the repository before assigning work
Before starting the session, or in a separate terminal, inspect:
git status
git branch --show-current
git remote -v
You should see the intended contribution branch and remote repository. If git status reports that the directory is not a repository, you may have opened an extracted ZIP or the parent folder instead of the clone. Fix that context before letting the assistant edit files.
For a first exercise, start with a clean working tree. If you already have unrelated edits, preserve them and separate the new task into an appropriate branch or working copy. Do not ask an assistant to “clean up” an unfamiliar collection of changes as part of connection setup.
Give Gemini a concrete README task
Use this complete prompt:
Read README.md and any repository guidance that applies to this task.
The audience is someone visiting the project for the first time.
Identify how the project tells users to download or install it. Improve
only that README section so the intended distribution is clear and source
archives are not mistaken for packaged applications.
Preserve the project's actual installation route. Do not invent release
files, supported platforms, package names, or commands. If the evidence is
insufficient, report what needs clarification before editing.
Show the proposed change, then apply it after review. Report the files
changed and verification actually performed. Do not commit or push yet.
This is deliberately specific about evidence. A repository may have no packaged application at all. In that case, a useful improvement could explain how to obtain and use the source according to the existing instructions. The assistant should not manufacture a Releases workflow simply because the example mentions distributions.
Review the suggested operations before allowing them, according to the CLI's configured permissions. Afterward, inspect the actual README and Git diff. The expected result is a small revision that helps the reader choose the correct path while preserving the project's facts.
Complete the contribution with ordinary Git
You can return to Desktop to select, commit, and push the change. If you prefer the terminal, these illustrative commands assume you reviewed the diff, the file is README.md, and origin is your writable destination:
git diff -- README.md
git add README.md
git commit -m "Clarify download instructions"
git push -u origin docs/clarify-downloads
Open GitHub and create a pull request from that branch into the intended upstream base. Describe the user problem, the changed explanation, and the checks performed. If the project has a contribution template, use it.
The distinction between assistant and repository tools is useful here. Gemini can help prepare or execute approved operations, but you can also keep publication entirely in Desktop or the browser. There is no requirement to grant a new cloud integration merely to contribute a local edit.
Enterprise and troubleshooting
A local clone can come from GitHub.com or an enterprise host when your machine has the required Git access. The AI service still needs to be approved for that project's content. Working locally describes where the tools execute; it does not imply that model inference happens offline.
If gemini is not found, check installation and PATH. If Google authentication fails, follow the account and project configuration guidance. If Git cannot fetch or push, check the remote hostname, credentials, organization sign-on, and network access. If the agent cannot run project checks, inspect the missing runtime or dependencies and report the limitation accurately.
The first contribution establishes a repeatable pattern: give the assistant the repository context, define a bounded result, inspect the files, and publish through the existing review process. You can use that pattern for a documentation fix today and a larger engineering task when you can define and verify it well.