{"id":37098084,"url":"https://github.com/gbernady/git-credential-op","last_synced_at":"2026-01-14T12:00:34.088Z","repository":{"id":61623548,"uuid":"530725712","full_name":"gbernady/git-credential-op","owner":"gbernady","description":"A git credential helper powered by the 1Password CLI","archived":false,"fork":false,"pushed_at":"2024-04-14T20:31:00.000Z","size":70,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-17T18:09:59.375Z","etag":null,"topics":["1password","1password-cli","git"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbernady.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-30T15:49:08.000Z","updated_at":"2024-06-20T12:58:04.978Z","dependencies_parsed_at":"2023-10-12T03:49:54.275Z","dependency_job_id":"4fccdfc6-b327-4ede-a01e-73127cfcc553","html_url":"https://github.com/gbernady/git-credential-op","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gbernady/git-credential-op","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbernady%2Fgit-credential-op","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbernady%2Fgit-credential-op/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbernady%2Fgit-credential-op/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbernady%2Fgit-credential-op/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbernady","download_url":"https://codeload.github.com/gbernady/git-credential-op/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbernady%2Fgit-credential-op/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1password","1password-cli","git"],"created_at":"2026-01-14T12:00:22.595Z","updated_at":"2026-01-14T12:00:34.043Z","avatar_url":"https://github.com/gbernady.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-credential-op\n\n[![Build Status](https://github.com/gbernady/git-credential-op/workflows/Build/badge.svg?branch=main)](https://github.com/gbernady/git-credential-op/actions?query=branch%3Amain)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gbernady/git-credential-op)](https://goreportcard.com/report/github.com/gbernady/git-credential-op)\n[![GoDoc](https://pkg.go.dev/badge/github.com/gbernady/git-credential-op)](https://pkg.go.dev/github.com/gbernady/git-credential-op)\n\nThe `git-credential-op` is a custom Git credential helper built on top of [1Password CLI](https://developer.1password.com/docs/cli/get-started/).\n\nYou can use it to access remote repositories over HTTPS with credentials like GitHub's Personal Access Tokens (PATs) stored in [1Password](https://1password.com) instead of [built-in credential helpers](https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage).\n\n## Status\n\n⚠️ WARNING: This project is **experimental**. Things might break or not work as expected.\n\n### Features\n\n- [x] Read credentials\n- [ ] Store credentials\n- [ ] Erase credentials\n\n### Platforms\n\n| Architecture | macOS | Linux | Windows |\n|--------------|-------|-------|---------|\n| x86          | N/A   | ✕     | ✕       |\n| amd64        | ✓     | ✓     | ✕       |\n| arm64        | ✓     | ✓     | ✕       |\n\n## Installation\n\nI recommend downloading the latest build from GitHub [releases](https://github.com/gbernady/git-credential-op/releases) page and putting it somewhere on your `$PATH` (e.g. `/usr/local/bin`).\n\n### Build from Sources\n\nIf you have [Go](https://go.dev) installed on your machine, you can also install the helper from sources with:\n\n```sh\ngo install github.com/gbernady/git-credential-op/cmd/git-credential-op@latest\n```\n\n## Usage\n\nMake sure you have the latest version of [1Password CLI](https://developer.1password.com/docs/cli/get-started/) installed on your system and you are signed in to your 1Password account. If everything is set up correctly, you should be able to list your vaults by running `op vault ls` in your terminal:\n\n```sh\n$ op vault ls\nID                            NAME\nynghx4vcntp3zvhqyehlcp7v7f    Personal\n```\n\nOnce you have [1Password CLI](https://developer.1password.com/docs/cli/get-started/) up and running, you can enable the credential helper in your git configuration with:\n\n```sh\ngit config --global credential.helper op\n```\n\nNote: The credential helper only looks for credential saved in the `API Credential` category in 1Password.\n\n### Configuration Flags\n\nThe credential helper accepts a few configuration flags that can be used to modify the default behavior like this:\n\n```sh\ngit config --global credential.helper \"op [flags]\"\n```\n\n#### Flags\n\n- `--account \u003cname\u003e` - the account to use (if more than one is available on the machine)\n- `--vault \u003cname\u003e` - the vault to use; defaults to the `Personal` vault\n\n## Troubleshooting\n\n### Private Homebrew taps\n\nHomebrew [filters envs including $PATH](https://github.com/Homebrew/brew/blob/master/bin/brew#L127), so it won't be able to find the `git-credential-op` helper. This can be worked around with an [absolute path to the binary](https://git-scm.com/docs/gitcredentials#_custom_helpers).\n\nOn top op that, the user environment set up by Homebrew for installing formulae does not contain any local machine configs like the `$HOME/.gitconfig`.\n\n### Disabling System Helper\n\nOn some machines (e.g., running macOS), a credential helper may already be configured in the system-wide `$(prefix)/etc/gitconfig` file. Since the system-wide configuration is read first by Git, that helper will be consulted before this one to store the credential and return in on subsequent use.\n\nIf that's not what you want, you can either modify the system-wide config file or disable reading it altogether with the [GIT_CONFIG_NOSYSTEM](https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGNOSYSTEM) environment variable:\n\n```sh\nexport GIT_CONFIG_NOSYSTEM=1\n```\n\n## License\n\nThe code is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbernady%2Fgit-credential-op","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbernady%2Fgit-credential-op","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbernady%2Fgit-credential-op/lists"}